pub struct Pin {
pub owner: BlockId,
pub name: String,
pub type_name: String,
pub tag: String,
pub tag_hidden: bool,
pub rect: GridRect,
pub slot: PinSlot,
pub dir: PinDir,
pub port_accent: Role,
pub flip_lr: bool,
}Fields§
§owner: BlockId§name: String§type_name: String§tag: String§rect: GridRectThe port body’s placement inside the block’s own interior
view — a different scope from slot, which places the pin
on the block-as-child.
slot: PinSlot§dir: PinDir§port_accent: RoleThe one authored accent. Stub and port-pin accents are propagated from route roles — derived state, computed client-side, never in the log.
flip_lr: boolThe port body’s facing: false = the default, opposite the
pin’s edge (slot.side.flip()); true = frozen to face
slot.side itself.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pin
impl<'de> Deserialize<'de> for Pin
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
impl StructuralPartialEq for Pin
Auto Trait Implementations§
impl Freeze for Pin
impl RefUnwindSafe for Pin
impl Send for Pin
impl Sync for Pin
impl Unpin for Pin
impl UnsafeUnpin for Pin
impl UnwindSafe for Pin
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