Enum deepmesa_collections::bitvec::BitOrder[][src]

pub enum BitOrder {
    Lsb0,
    Msb0,
}
Expand description

This enum indicates the order in which bits are traversed and counted.

Msb0 indicates that the MSB (Most Significant Bit) should be considered as position 0 and consequently bits should be counted from the MSB to the LSB.

Lsb0 indicates tht the LSB (Least Significant Bit) should be considered as position 0 and the bits should therefore be counter from the LSB to the MSB.

Here is an illustrative example:

Examples

let val: u8 = 0b1011_1100;

Counting 4 bits from the Msb0 would yield 1011 while counting 4 bits from the Lsb0 would result in 1100

Variants

Lsb0

Counts bits from the LSB (Least Significant Bit) to the MSB (Most Significant Bit).

Msb0

Counts bits from the MSB (Most Significant Bit) to the LSB (Least Significant Bit).

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

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.