pub enum PinIdOrName {
Id(u8),
Name(String),
}Expand description
Defines a structure to receive either an id or a name for a pin: 1, ‘D1’ or ‘A1’ for instance.
Variants§
Trait Implementations§
Source§impl Clone for PinIdOrName
impl Clone for PinIdOrName
Source§fn clone(&self) -> PinIdOrName
fn clone(&self) -> PinIdOrName
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 PinIdOrName
impl Debug for PinIdOrName
Source§impl Display for PinIdOrName
impl Display for PinIdOrName
Source§impl From<&str> for PinIdOrName
impl From<&str> for PinIdOrName
Source§impl From<String> for PinIdOrName
impl From<String> for PinIdOrName
Source§impl From<u8> for PinIdOrName
impl From<u8> for PinIdOrName
Source§impl PartialEq for PinIdOrName
impl PartialEq for PinIdOrName
Source§fn eq(&self, other: &PinIdOrName) -> bool
fn eq(&self, other: &PinIdOrName) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PinIdOrName
Auto Trait Implementations§
impl Freeze for PinIdOrName
impl RefUnwindSafe for PinIdOrName
impl Send for PinIdOrName
impl Sync for PinIdOrName
impl Unpin for PinIdOrName
impl UnsafeUnpin for PinIdOrName
impl UnwindSafe for PinIdOrName
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