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
Counts bits from the LSB (Least Significant Bit) to the MSB (Most Significant Bit).
Counts bits from the MSB (Most Significant Bit) to the LSB (Least Significant Bit).
Trait Implementations
impl Copy for BitOrder
[src]
impl Eq for BitOrder
[src]
impl StructuralEq for BitOrder
[src]
impl StructuralPartialEq for BitOrder
[src]
Auto Trait Implementations
impl RefUnwindSafe for BitOrder
impl Send for BitOrder
impl Sync for BitOrder
impl Unpin for BitOrder
impl UnwindSafe for BitOrder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more