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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataLength
impl Debug 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§impl PartialEq for DataLength
impl PartialEq for DataLength
Source§impl PartialOrd for DataLength
impl PartialOrd for DataLength
impl Copy for DataLength
impl Eq 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 UnwindSafe for DataLength
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)