pub struct DataLength(/* private fields */);Expand description
CAN-FD-compatible data length
Data length code (DLC) of CAN-FD frames supports limited data length options. Classic CAN frames support a subset of CAN-FD length options limited by MTU.
Implementations§
Trait Implementations§
Source§impl Clone for DataLength
impl Clone for DataLength
Source§fn clone(&self) -> DataLength
fn clone(&self) -> DataLength
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DataLength
Source§impl Debug for DataLength
impl Debug for DataLength
impl Eq for DataLength
Source§impl From<DataLength> for usize
impl From<DataLength> for usize
Source§fn from(value: DataLength) -> Self
fn from(value: DataLength) -> Self
Converts to this type from the input type.
Source§impl Ord for DataLength
impl Ord for DataLength
Source§fn cmp(&self, other: &DataLength) -> Ordering
fn cmp(&self, other: &DataLength) -> Ordering
1.21.0 (const: unstable) · 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 for DataLength
impl PartialEq for DataLength
Source§fn eq(&self, other: &DataLength) -> bool
fn eq(&self, other: &DataLength) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DataLength
impl PartialOrd for DataLength
impl StructuralPartialEq for DataLength
Auto Trait Implementations§
impl Freeze for DataLength
impl RefUnwindSafe for DataLength
impl Send for DataLength
impl Sync for DataLength
impl Unpin for DataLength
impl UnsafeUnpin for DataLength
impl UnwindSafe for DataLength
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