Struct bxcan::ExtendedId [−][src]
pub struct ExtendedId(_);
Expand description
Extended 29-bit CAN Identifier (0..=1FFF_FFFF
).
Implementations
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
).
Creates a new ExtendedId
without checking if it is inside the valid range.
Safety
The caller must ensure that raw
is in the valid range, otherwise the behavior is
undefined.
Returns the Base ID part of this extended identifier.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.