pub enum DecodeOrder {
Big,
Little,
}
Expand description
DecodeOrder
is used to specify how signed and unsigned integers encoded as bytes must be assumed w.r.t byte-order for decoding.
Example DecodeOrder::Little
assumes all the bytes to be decoded are in little endian byte order.
Variants§
Trait Implementations§
Source§impl Clone for DecodeOrder
impl Clone for DecodeOrder
Source§fn clone(&self) -> DecodeOrder
fn clone(&self) -> DecodeOrder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DecodeOrder
impl RefUnwindSafe for DecodeOrder
impl Send for DecodeOrder
impl Sync for DecodeOrder
impl Unpin for DecodeOrder
impl UnwindSafe for DecodeOrder
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