Enum scale_bits::dynamic::OrderType
source · [−]pub enum OrderType {
Lsb0,
Msb0,
}
Expand description
This is a runtime representation of the order that bits will be written
to the specified StoreType
.
OrderType::Lsb0
means that we write to the least significant bit first and then work our way up to the most significant bit as we push new bits.OrderType::Msb0
means that we write to the most significant bit first and then work our way down to the least significant bit as we push new bits.
These are equivalent to bitvec
’s order::Lsb0
and order::Msb0
.
Variants
Lsb0
Least significant bit first.
Msb0
Most significant bit first.
Trait Implementations
sourceimpl PartialEq<OrderType> for OrderType
impl PartialEq<OrderType> for OrderType
impl Copy for OrderType
impl Eq for OrderType
impl StructuralEq for OrderType
impl StructuralPartialEq for OrderType
Auto Trait Implementations
impl RefUnwindSafe for OrderType
impl Send for OrderType
impl Sync for OrderType
impl Unpin for OrderType
impl UnwindSafe for OrderType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more