Struct bxcan::StandardId [−][src]
pub struct StandardId(_);
Expand description
Standard 11-bit CAN Identifier (0..=0x7FF
).
Implementations
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
).
Creates a new StandardId
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.
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 !=
.