pub struct StandardId(/* private fields */);Expand description
Standard 11-bit TWAI Identifier (0..=0x7FF).
Implementations§
Source§impl StandardId
 
impl StandardId
Sourcepub fn new(raw: u16) -> Option<Self>
 
pub fn new(raw: u16) -> Option<Self>
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).
Sourcepub const unsafe fn new_unchecked(raw: u16) -> Self
 
pub const unsafe fn new_unchecked(raw: u16) -> Self
Creates a new StandardId without checking if it is inside the valid
range.
§Safety
Using this method can create an invalid ID and is thus marked as unsafe.
Trait Implementations§
Source§impl Clone for StandardId
Available on crate feature unstable only. 
impl Clone for StandardId
Available on crate feature 
unstable only.Source§fn clone(&self) -> StandardId
 
fn clone(&self) -> StandardId
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for StandardId
Available on crate feature unstable only. 
impl Debug for StandardId
Available on crate feature 
unstable only.Source§impl From<StandardId> for Id
Available on crate feature unstable only. 
impl From<StandardId> for Id
Available on crate feature 
unstable only.Source§fn from(id: StandardId) -> Self
 
fn from(id: StandardId) -> Self
Converts to this type from the input type.
Source§impl From<StandardId> for StandardId
Available on crate feature unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
 
impl From<StandardId> for StandardId
Available on crate feature 
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§fn from(value: StandardId) -> Self
 
fn from(value: StandardId) -> Self
Converts to this type from the input type.
Source§impl From<StandardId> for StandardId
Available on crate feature unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
 
impl From<StandardId> for StandardId
Available on crate feature 
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§fn from(value: StandardId) -> Self
 
fn from(value: StandardId) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StandardId
Available on crate feature unstable only. 
impl PartialEq for StandardId
Available on crate feature 
unstable only.impl Copy for StandardId
Available on crate feature 
unstable only.impl Eq for StandardId
Available on crate feature 
unstable only.impl StructuralPartialEq for StandardId
Available on crate feature 
unstable only.Auto Trait Implementations§
impl Freeze for StandardId
impl RefUnwindSafe for StandardId
impl Send for StandardId
impl Sync for StandardId
impl Unpin for StandardId
impl UnwindSafe for StandardId
Blanket Implementations§
§impl<T> Any for Twhere
    T: 'static + ?Sized,
 
impl<T> Any for Twhere
    T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
    T: ?Sized,
 
impl<T> Borrow<T> for Twhere
    T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
 
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)