[−][src]Enum embedded_can::Id
CAN Identifier
The variants are wrapped in newtypes so they can only be costructed with valid values.
Variants
Standard(StandardId)Standard 11bit Identifier (0..=0x7FF)
Extended(ExtendedId)Extended 29bit Identifier (0..=0x1FFF_FFFF)
Implementations
impl Id[src]
pub fn new_standard(id: u16) -> Result<Id, ()>[src]
Creates a new standard identifier.
pub fn new_extended(id: u32) -> Result<Id, ()>[src]
Creates a new extended identifier.
Trait Implementations
impl Clone for Id[src]
fn clone(&self) -> Id[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Id[src]
impl Debug for Id[src]
impl Eq for Id[src]
impl From<ExtendedId> for Id[src]
fn from(id: ExtendedId) -> Id[src]
impl From<StandardId> for Id[src]
fn from(id: StandardId) -> Id[src]
impl PartialEq<Id> for Id[src]
impl StructuralEq for Id[src]
impl StructuralPartialEq for Id[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,