[][src]Struct embedded_can::ExtendedId

pub struct ExtendedId(_);

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

Implementations

impl ExtendedId[src]

pub const ZERO: Self[src]

CAN ID 0, the highest priority.

pub const MAX: Self[src]

CAN ID 0x1FFFFFFF, the lowest priority.

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 const unsafe fn new_unchecked(raw: u32) -> Self[src]

Creates a new ExtendedId without checking if it is inside the valid range.

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 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, 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.