Struct embedded_hal::can::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
Using this method can create an invalid ID and is thus marked as unsafe.
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 !=
.