Enum ChachaDinByteOrder
#[repr(u8)]pub enum ChachaDinByteOrder {
Default = 0,
Reverse = 1,
}Variants§
Default = 0
Use default byte order within each input word, where bytes are ordered as follows: B0, B1, B2, B3.
Reverse = 1
Reverse the byte order within each input word, where bytes are re-ordered as follows: B3, B2, B1, B0.
Implementations§
§impl ChachaDinByteOrder
impl ChachaDinByteOrder
pub const fn from_bits(val: u8) -> ChachaDinByteOrder
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for ChachaDinByteOrder
impl Clone for ChachaDinByteOrder
§fn clone(&self) -> ChachaDinByteOrder
fn clone(&self) -> ChachaDinByteOrder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChachaDinByteOrder
§impl Debug for ChachaDinByteOrder
impl Debug for ChachaDinByteOrder
impl Eq for ChachaDinByteOrder
§impl From<u8> for ChachaDinByteOrder
impl From<u8> for ChachaDinByteOrder
§fn from(val: u8) -> ChachaDinByteOrder
fn from(val: u8) -> ChachaDinByteOrder
Converts to this type from the input type.
§impl Ord for ChachaDinByteOrder
impl Ord for ChachaDinByteOrder
§fn cmp(&self, other: &ChachaDinByteOrder) -> Ordering
fn cmp(&self, other: &ChachaDinByteOrder) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for ChachaDinByteOrder
impl PartialEq for ChachaDinByteOrder
§impl PartialOrd for ChachaDinByteOrder
impl PartialOrd for ChachaDinByteOrder
impl StructuralPartialEq for ChachaDinByteOrder
Auto Trait Implementations§
impl Freeze for ChachaDinByteOrder
impl RefUnwindSafe for ChachaDinByteOrder
impl Send for ChachaDinByteOrder
impl Sync for ChachaDinByteOrder
impl Unpin for ChachaDinByteOrder
impl UnsafeUnpin for ChachaDinByteOrder
impl UnwindSafe for ChachaDinByteOrder
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