pub enum Id {
Standard(StandardId),
Extended(ExtendedId),
}
Expand description
A CAN Identifier (standard or extended).
Variants§
Standard(StandardId)
Standard 11-bit Identifier (0..=0x7FF
).
Extended(ExtendedId)
Extended 29-bit Identifier (0..=0x1FFF_FFFF
).
Trait Implementations§
source§impl From<ExtendedId> for Id
impl From<ExtendedId> for Id
source§fn from(id: ExtendedId) -> Self
fn from(id: ExtendedId) -> Self
Converts to this type from the input type.
source§impl From<StandardId> for Id
impl From<StandardId> for Id
source§fn from(id: StandardId) -> Self
fn from(id: StandardId) -> Self
Converts to this type from the input type.
impl Copy for Id
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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