[][src]Struct bxcan::StandardId

pub struct StandardId(_);

Standard 11-bit CAN Identifier (0..=0x7FF).

Implementations

impl StandardId[src]

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

Tries to create a StandardId from a raw 16-bit integer.

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

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

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

Trait Implementations

impl Clone for StandardId[src]

impl Copy for StandardId[src]

impl Debug for StandardId[src]

impl Eq for StandardId[src]

impl Format for StandardId[src]

impl From<StandardId> for Id[src]

impl PartialEq<StandardId> for StandardId[src]

impl StructuralEq for StandardId[src]

impl StructuralPartialEq for StandardId[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.