pub enum CanId {
Standard(u16),
Extended(u32),
}Variants§
Implementations§
Source§impl Id
impl Id
pub fn new_standard(id: u16) -> Self
pub fn new_extended(id: u32) -> Self
pub fn from_bits(id: u32, force_extend: Option<bool>) -> Self
pub fn into_bits(self) -> u32
pub fn from_hex(hex_str: &str, force_extend: Option<bool>) -> Option<Self>
pub fn into_hex(self) -> String
Sourcepub fn standard_id(self) -> Self
pub fn standard_id(self) -> Self
Returns the Base ID part of this extended identifier.
pub fn is_extended(&self) -> bool
Trait Implementations§
Source§impl Ord for Id
impl Ord for Id
Source§impl PartialOrd for Id
impl PartialOrd for Id
impl Copy for Id
impl Eq for Id
impl Send for Id
impl StructuralPartialEq for Id
impl Sync for Id
Auto Trait Implementations§
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