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§
Trait Implementations§
source§impl Clone for OrderFormat
impl Clone for OrderFormat
source§fn clone(&self) -> OrderFormat
fn clone(&self) -> OrderFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OrderFormat
impl Debug for OrderFormat
source§impl PartialEq<OrderFormat> for OrderFormat
impl PartialEq<OrderFormat> for OrderFormat
source§fn eq(&self, other: &OrderFormat) -> bool
fn eq(&self, other: &OrderFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more