[][src]Struct bxcan::ExtendedId

pub struct ExtendedId(_);

Extended 29-bit CAN Identifier (0..=1FFF_FFFF).

Implementations

impl ExtendedId[src]

pub const fn new(raw: u32) -> Option<Self>[src]

Tries to create a ExtendedId from a raw 32-bit integer.

This will return None if raw is out of range of an 29-bit integer (> 0x1FFF_FFFF).

pub fn as_raw(&self) -> u32[src]

Returns this CAN Identifier as a raw 32-bit integer.

pub fn standard_id(&self) -> StandardId[src]

Returns the Base ID part of this extended identifier.

Trait Implementations

impl Clone for ExtendedId[src]

impl Copy for ExtendedId[src]

impl Debug for ExtendedId[src]

impl Eq for ExtendedId[src]

impl Format for ExtendedId[src]

impl From<ExtendedId> for Id[src]

impl PartialEq<ExtendedId> for ExtendedId[src]

impl StructuralEq for ExtendedId[src]

impl StructuralPartialEq for ExtendedId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.