pub enum PinIdentifier {
Number(PinNumber),
Name(PinName),
}Expand description
A pin identified by number or name.
Variants§
Trait Implementations§
Source§impl Clone for PinIdentifier
impl Clone for PinIdentifier
Source§fn clone(&self) -> PinIdentifier
fn clone(&self) -> PinIdentifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PinIdentifier
impl Debug for PinIdentifier
Source§impl Display for PinIdentifier
impl Display for PinIdentifier
Source§impl From<PinName> for PinIdentifier
impl From<PinName> for PinIdentifier
Source§impl From<PinNumber> for PinIdentifier
impl From<PinNumber> for PinIdentifier
Source§impl Hash for PinIdentifier
impl Hash for PinIdentifier
Source§impl Ord for PinIdentifier
impl Ord for PinIdentifier
Source§fn cmp(&self, other: &PinIdentifier) -> Ordering
fn cmp(&self, other: &PinIdentifier) -> Ordering
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 PartialEq for PinIdentifier
impl PartialEq for PinIdentifier
Source§fn eq(&self, other: &PinIdentifier) -> bool
fn eq(&self, other: &PinIdentifier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PinIdentifier
impl PartialOrd for PinIdentifier
impl Eq for PinIdentifier
impl StructuralPartialEq for PinIdentifier
Auto Trait Implementations§
impl Freeze for PinIdentifier
impl RefUnwindSafe for PinIdentifier
impl Send for PinIdentifier
impl Sync for PinIdentifier
impl Unpin for PinIdentifier
impl UnsafeUnpin for PinIdentifier
impl UnwindSafe for PinIdentifier
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