pub struct StandardId(_);
Expand description

Standard 11-bit CAN Identifier (0..=0x7FF).

Implementations

CAN ID 0, the highest priority.

CAN ID 0x7FF, the lowest priority.

Tries to create a StandardId from a raw 16-bit integer.

This will return None if raw is out of range of an 11-bit integer (> 0x7FF).

Creates a new StandardId without checking if it is inside the valid range.

Safety

Using this method can create an invalid ID and is thus marked as unsafe.

Returns this CAN Identifier as a raw 16-bit integer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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.