Struct ExtendedId
pub struct ExtendedId(u32);Available on crate feature
data-support-can only.Expand description
An extended CAN id.
Tuple Fields§
§0: u32Implementations§
§impl ExtendedId
impl ExtendedId
pub 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.
pub 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§
§impl Clone for ExtendedId
impl Clone for ExtendedId
§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 more§impl Debug for ExtendedId
impl Debug for ExtendedId
§impl<'de> Deserialize<'de> for ExtendedId
impl<'de> Deserialize<'de> for ExtendedId
§fn deserialize<D>(
deserializer: D,
) -> Result<ExtendedId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ExtendedId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<ExtendedId> for Id
impl From<ExtendedId> for Id
§fn from(extended: ExtendedId) -> Id
fn from(extended: ExtendedId) -> Id
Converts to this type from the input type.
§impl From<ExtendedId> for u32
impl From<ExtendedId> for u32
§fn from(value: ExtendedId) -> u32
fn from(value: ExtendedId) -> u32
Converts to this type from the input type.
§impl PartialEq for ExtendedId
impl PartialEq for ExtendedId
§impl Serialize for ExtendedId
impl Serialize for ExtendedId
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§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