pub enum ByteOrder {
BigEndian,
LittleEndian,
NativeEndian,
}Expand description
Runtime byte order selector.
§Examples
use qubit_codec::{BigEndian, ByteOrder, ByteOrderSpec};
assert_eq!(ByteOrder::BigEndian, BigEndian::ORDER);Variants§
BigEndian
Big-endian byte order.
LittleEndian
Little-endian byte order.
NativeEndian
Native-endian byte order.
Trait Implementations§
impl Copy for ByteOrder
impl Eq for ByteOrder
impl StructuralPartialEq for ByteOrder
Auto Trait Implementations§
impl Forget for ByteOrder
impl Freeze for ByteOrder
impl RefUnwindSafe for ByteOrder
impl Send for ByteOrder
impl Sync for ByteOrder
impl Unpin for ByteOrder
impl UnsafeUnpin for ByteOrder
impl UnwindSafe for ByteOrder
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