Enum Id
pub enum Id {
Standard(StandardId),
Extended(ExtendedId),
}Available on crate feature
data-support-can only.Expand description
Either a standard or extended CAN id.
Variants§
Trait Implementations§
§impl<'de> Deserialize<'de> for Id
impl<'de> Deserialize<'de> for Id
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Id, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Id, <__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<StandardId> for Id
impl From<StandardId> for Id
§fn from(standard: StandardId) -> Id
fn from(standard: StandardId) -> Id
Converts to this type from the input type.
§impl Serialize for Id
impl Serialize for Id
§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 Copy for Id
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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