Struct canadensis_can::CanNodeId
source · pub struct CanNodeId(_);
Expand description
Node ID
Valid node IDs are in the range 0..=127 (7 bits). IDs 126 and 127 are reserved for diagnostic and debugging tools.
Implementations§
source§impl CanNodeId
impl CanNodeId
sourcepub const fn from_truncating(value: u8) -> Self
pub const fn from_truncating(value: u8) -> Self
Creates a valid NodeID from a u8, truncating values that are out of range
sourcepub fn is_diagnostic_reserved(self) -> bool
pub fn is_diagnostic_reserved(self) -> bool
Returns true if this node ID is one of the two highest values, which are reserved for diagnostic and debugging tools
Trait Implementations§
source§impl Ord for CanNodeId
impl Ord for CanNodeId
source§impl PartialEq<CanNodeId> for CanNodeId
impl PartialEq<CanNodeId> for CanNodeId
source§impl PartialOrd<CanNodeId> for CanNodeId
impl PartialOrd<CanNodeId> for CanNodeId
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 moreimpl Copy for CanNodeId
impl Eq for CanNodeId
impl StructuralEq for CanNodeId
impl StructuralPartialEq for CanNodeId
Auto Trait Implementations§
impl RefUnwindSafe for CanNodeId
impl Send for CanNodeId
impl Sync for CanNodeId
impl Unpin for CanNodeId
impl UnwindSafe for CanNodeId
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