Struct bxcan::Data[][src]

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.

Implementations

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.

Trait Implementations

Performs the conversion.

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.