pub struct PinRef { /* private fields */ }Expand description
A reference to a component pin, such as U2:VCC or R1:1.
Implementations§
Source§impl PinRef
impl PinRef
Sourcepub const fn new(component: ReferenceDesignator, pin: PinIdentifier) -> Self
pub const fn new(component: ReferenceDesignator, pin: PinIdentifier) -> Self
Creates a pin reference from a component designator and pin identifier.
Sourcepub const fn numbered(component: ReferenceDesignator, pin: PinNumber) -> Self
pub const fn numbered(component: ReferenceDesignator, pin: PinNumber) -> Self
Creates a pin reference from a numeric pin.
Sourcepub const fn named(component: ReferenceDesignator, pin: PinName) -> Self
pub const fn named(component: ReferenceDesignator, pin: PinName) -> Self
Creates a pin reference from a named pin.
Sourcepub const fn component(&self) -> &ReferenceDesignator
pub const fn component(&self) -> &ReferenceDesignator
Returns the component reference designator.
Sourcepub const fn pin(&self) -> &PinIdentifier
pub const fn pin(&self) -> &PinIdentifier
Returns the pin identifier.
Trait Implementations§
Source§impl Ord for PinRef
impl Ord for PinRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for PinRef
impl PartialOrd for PinRef
impl Eq for PinRef
impl StructuralPartialEq for PinRef
Auto Trait Implementations§
impl Freeze for PinRef
impl RefUnwindSafe for PinRef
impl Send for PinRef
impl Sync for PinRef
impl Unpin for PinRef
impl UnsafeUnpin for PinRef
impl UnwindSafe for PinRef
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