Struct bxcan::ExtendedId[][src]

pub struct ExtendedId(_);
Expand description

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

Implementations

impl ExtendedId[src]

pub const ZERO: ExtendedId[src]

CAN ID 0, the highest priority.

pub const MAX: ExtendedId[src]

CAN ID 0x1FFFFFFF, the lowest priority.

pub const fn new(raw: u32) -> Option<ExtendedId>[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) -> ExtendedId[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]

pub fn clone(&self) -> ExtendedId[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ExtendedId[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl From<ExtendedId> for Id[src]

pub fn from(id: ExtendedId) -> Id[src]

Performs the conversion.

impl PartialEq<ExtendedId> for ExtendedId[src]

pub fn eq(&self, other: &ExtendedId) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

pub fn ne(&self, other: &ExtendedId) -> bool[src]

This method tests for !=.

impl Copy for ExtendedId[src]

impl Eq for ExtendedId[src]

impl StructuralEq for ExtendedId[src]

impl StructuralPartialEq for ExtendedId[src]

Auto Trait Implementations

impl Send for ExtendedId

impl Sync for ExtendedId

impl Unpin for ExtendedId

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.