pub struct PinSlot {
pub side: PinSide,
pub offset: u32,
}Expand description
Where a pin sits on its block-as-child: an edge and a slot index (slots, not cells — the pitch is the editor’s concern). Atomic: a slot is one author’s intent, and split registers could merge to an edge one write chose and an offset another did.
Fields§
§side: PinSide§offset: u32Trait Implementations§
Source§impl<'de> Deserialize<'de> for PinSlot
impl<'de> Deserialize<'de> for PinSlot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryFrom<RawPinSlot> for PinSlot
impl TryFrom<RawPinSlot> for PinSlot
Source§type Error = OutOfExtent
type Error = OutOfExtent
The type returned in the event of a conversion error.
impl Copy for PinSlot
impl Eq for PinSlot
impl StructuralPartialEq for PinSlot
Auto Trait Implementations§
impl Freeze for PinSlot
impl RefUnwindSafe for PinSlot
impl Send for PinSlot
impl Sync for PinSlot
impl Unpin for PinSlot
impl UnsafeUnpin for PinSlot
impl UnwindSafe for PinSlot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more