Enum scale_bits::scale::format::OrderFormat
source · [−]pub enum OrderFormat {
Lsb0,
Msb0,
}
Expand description
This is a runtime representation of the order that bits will be written
to the specified StoreFormat
.
OrderFormat::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.OrderFormat::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 Clone for OrderFormat
impl Clone for OrderFormat
sourcefn clone(&self) -> OrderFormat
fn clone(&self) -> OrderFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OrderFormat
impl Debug for OrderFormat
sourceimpl PartialEq<OrderFormat> for OrderFormat
impl PartialEq<OrderFormat> for OrderFormat
sourcefn eq(&self, other: &OrderFormat) -> bool
fn eq(&self, other: &OrderFormat) -> bool
impl Copy for OrderFormat
impl Eq for OrderFormat
impl StructuralEq for OrderFormat
impl StructuralPartialEq for OrderFormat
Auto Trait Implementations
impl RefUnwindSafe for OrderFormat
impl Send for OrderFormat
impl Sync for OrderFormat
impl Unpin for OrderFormat
impl UnwindSafe for OrderFormat
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