Struct bxcan::ExtendedId[][src]

pub struct ExtendedId(_);
Expand description

Extended 29-bit CAN Identifier (0..=1FFF_FFFF).

Implementations

CAN ID 0, the highest priority.

CAN ID 0x1FFFFFFF, the lowest priority.

Tries to create a ExtendedId from a raw 32-bit integer.

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

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

Safety

The caller must ensure that raw is in the valid range, otherwise the behavior is undefined.

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

Returns the Base ID part of this extended identifier.

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.