Struct canadensis_can::CanTransferId
source · pub struct CanTransferId(_);
Expand description
Transfer ID, 5 bits, in range 0..=31
Implementations§
source§impl CanTransferId
impl CanTransferId
sourcepub const fn const_default() -> Self
pub const fn const_default() -> Self
Returns the default transfer ID (0). This is equivalent to Default::default(), but it can be called in a constant expression.
Trait Implementations§
source§impl Clone for CanTransferId
impl Clone for CanTransferId
source§fn clone(&self) -> CanTransferId
fn clone(&self) -> CanTransferId
Returns a copy 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 CanTransferId
impl Debug for CanTransferId
source§impl From<CanTransferId> for u16
impl From<CanTransferId> for u16
source§fn from(id: CanTransferId) -> Self
fn from(id: CanTransferId) -> Self
Converts to this type from the input type.
source§impl From<CanTransferId> for u32
impl From<CanTransferId> for u32
source§fn from(id: CanTransferId) -> Self
fn from(id: CanTransferId) -> Self
Converts to this type from the input type.
source§impl From<CanTransferId> for u8
impl From<CanTransferId> for u8
source§fn from(id: CanTransferId) -> Self
fn from(id: CanTransferId) -> Self
Converts to this type from the input type.
source§impl From<CanTransferId> for usize
impl From<CanTransferId> for usize
source§fn from(id: CanTransferId) -> Self
fn from(id: CanTransferId) -> Self
Converts to this type from the input type.
source§impl Ord for CanTransferId
impl Ord for CanTransferId
source§fn cmp(&self, other: &CanTransferId) -> Ordering
fn cmp(&self, other: &CanTransferId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CanTransferId> for CanTransferId
impl PartialEq<CanTransferId> for CanTransferId
source§fn eq(&self, other: &CanTransferId) -> bool
fn eq(&self, other: &CanTransferId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CanTransferId> for CanTransferId
impl PartialOrd<CanTransferId> for CanTransferId
source§fn partial_cmp(&self, other: &CanTransferId) -> Option<Ordering>
fn partial_cmp(&self, other: &CanTransferId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TransferId for CanTransferId
impl TransferId for CanTransferId
source§impl TryFrom<u8> for CanTransferId
impl TryFrom<u8> for CanTransferId
impl Copy for CanTransferId
impl Eq for CanTransferId
impl StructuralEq for CanTransferId
impl StructuralPartialEq for CanTransferId
Auto Trait Implementations§
impl RefUnwindSafe for CanTransferId
impl Send for CanTransferId
impl Sync for CanTransferId
impl Unpin for CanTransferId
impl UnwindSafe for CanTransferId
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more