[−][src]Struct embedded_can::StandardId
Standard 11-bit CAN Identifier (0..=0x7FF
).
Implementations
impl StandardId
[src]
pub const ZERO: Self
[src]
CAN ID 0
, the highest priority.
pub const MAX: Self
[src]
CAN ID 0x7FF
, the lowest priority.
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 const unsafe fn new_unchecked(raw: u16) -> Self
[src]
Creates a new StandardId
without checking if it is inside the valid range.
pub fn as_raw(&self) -> u16
[src]
Returns this CAN Identifier as a raw 16-bit integer.
Trait Implementations
impl Clone for StandardId
[src]
pub fn clone(&self) -> StandardId
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StandardId
[src]
impl Debug for StandardId
[src]
impl Eq for StandardId
[src]
impl From<StandardId> for Id
[src]
pub fn from(id: StandardId) -> Self
[src]
impl PartialEq<StandardId> for StandardId
[src]
pub fn eq(&self, other: &StandardId) -> bool
[src]
pub fn ne(&self, other: &StandardId) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,