Struct bxcan::StandardId [−][src]
pub struct StandardId(_);
Expand description
Standard 11-bit CAN Identifier (0..=0x7FF
).
Implementations
impl StandardId
[src]
impl StandardId
[src]pub const ZERO: StandardId
[src]
pub const ZERO: StandardId
[src]CAN ID 0
, the highest priority.
pub const MAX: StandardId
[src]
pub const MAX: StandardId
[src]CAN ID 0x7FF
, the lowest priority.
pub const fn new(raw: u16) -> Option<StandardId>
[src]
pub const fn new(raw: u16) -> Option<StandardId>
[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) -> StandardId
[src]
pub const unsafe fn new_unchecked(raw: u16) -> StandardId
[src]Creates a new StandardId
without checking if it is inside the valid range.
Trait Implementations
impl Clone for StandardId
[src]
impl Clone for StandardId
[src]pub fn clone(&self) -> StandardId
[src]
pub fn clone(&self) -> StandardId
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StandardId
[src]
impl Debug for StandardId
[src]impl From<StandardId> for Id
[src]
impl From<StandardId> for Id
[src]pub fn from(id: StandardId) -> Id
[src]
pub fn from(id: StandardId) -> Id
[src]Performs the conversion.
impl PartialEq<StandardId> for StandardId
[src]
impl PartialEq<StandardId> for StandardId
[src]pub fn eq(&self, other: &StandardId) -> bool
[src]
pub fn eq(&self, other: &StandardId) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &StandardId) -> bool
[src]
pub fn ne(&self, other: &StandardId) -> bool
[src]This method tests for !=
.