pub struct ExtendedId(/* private fields */);
Expand description
An extended CAN id.
Implementations§
Source§impl ExtendedId
impl ExtendedId
Sourcepub const fn new(value: u32) -> Option<ExtendedId>
pub const fn new(value: u32) -> Option<ExtendedId>
Creates an ExtendedId
, returns Some
if, and only if, value < 0x2000_0000
.
Sourcepub const fn new_unwrap(value: u32) -> ExtendedId
pub const fn new_unwrap(value: u32) -> ExtendedId
The equivalent of ExtendedId::new(value).unwrap()
, but as a const fn
, while unwrap
is
not const
-compatible.
Trait Implementations§
Source§impl Clone for ExtendedId
impl Clone for ExtendedId
Source§fn clone(&self) -> ExtendedId
fn clone(&self) -> ExtendedId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExtendedId
impl Debug for ExtendedId
Source§impl From<ExtendedId> for Id
impl From<ExtendedId> for Id
Source§fn from(extended: ExtendedId) -> Id
fn from(extended: ExtendedId) -> Id
Converts to this type from the input type.
Source§impl From<ExtendedId> for u32
impl From<ExtendedId> for u32
Source§fn from(value: ExtendedId) -> u32
fn from(value: ExtendedId) -> u32
Converts to this type from the input type.
Source§impl PartialEq for ExtendedId
impl PartialEq for ExtendedId
Source§impl TryFrom<u32> for ExtendedId
impl TryFrom<u32> for ExtendedId
impl Copy for ExtendedId
impl Eq for ExtendedId
impl StructuralPartialEq for ExtendedId
Auto Trait Implementations§
impl Freeze for ExtendedId
impl RefUnwindSafe for ExtendedId
impl Send for ExtendedId
impl Sync for ExtendedId
impl Unpin for ExtendedId
impl UnwindSafe for ExtendedId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more