Struct bxcan::ExtendedId [−][src]
pub struct ExtendedId(_);
Expand description
Extended 29-bit CAN Identifier (0..=1FFF_FFFF
).
Implementations
impl ExtendedId
[src]
impl ExtendedId
[src]pub const ZERO: ExtendedId
[src]
pub const ZERO: ExtendedId
[src]CAN ID 0
, the highest priority.
pub const MAX: ExtendedId
[src]
pub const MAX: ExtendedId
[src]CAN ID 0x1FFFFFFF
, the lowest priority.
pub const fn new(raw: u32) -> Option<ExtendedId>
[src]
pub const fn new(raw: u32) -> Option<ExtendedId>
[src]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
).
pub const unsafe fn new_unchecked(raw: u32) -> ExtendedId
[src]
pub const unsafe fn new_unchecked(raw: u32) -> ExtendedId
[src]Creates a new ExtendedId
without checking if it is inside the valid range.
pub fn standard_id(&self) -> StandardId
[src]
pub fn standard_id(&self) -> StandardId
[src]Returns the Base ID part of this extended identifier.
Trait Implementations
impl Clone for ExtendedId
[src]
impl Clone for ExtendedId
[src]pub fn clone(&self) -> ExtendedId
[src]
pub fn clone(&self) -> ExtendedId
[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 ExtendedId
[src]
impl Debug for ExtendedId
[src]impl From<ExtendedId> for Id
[src]
impl From<ExtendedId> for Id
[src]pub fn from(id: ExtendedId) -> Id
[src]
pub fn from(id: ExtendedId) -> Id
[src]Performs the conversion.
impl PartialEq<ExtendedId> for ExtendedId
[src]
impl PartialEq<ExtendedId> for ExtendedId
[src]pub fn eq(&self, other: &ExtendedId) -> bool
[src]
pub fn eq(&self, other: &ExtendedId) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ExtendedId) -> bool
[src]
pub fn ne(&self, other: &ExtendedId) -> bool
[src]This method tests for !=
.