pub struct Data { /* fields omitted */ }
Expand description
Payload of a CAN data frame.
Contains 0 to 8 Bytes of data.
Data
implements From<[u8; N]>
for all N
up to 8, which provides a convenient lossless
conversion from fixed-length arrays.
Creates a data payload from a raw byte slice.
Returns None
if data
contains more than 8 Bytes (which is the maximum).
Data
can also be constructed from fixed-length arrays up to length 8 via From
/Into
.
Creates an empty data payload containing 0 bytes.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Mutably dereferences the value.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.