Enum ChachaDoutByteOrder
#[repr(u8)]pub enum ChachaDoutByteOrder {
Default = 0,
Reverse = 1,
}Variants§
Default = 0
Use default byte order within each output word, where bytes are ordered as follows: B0, B1, B2, B3.
Reverse = 1
Reverse the byte order within each output word, where bytes are re-ordered as follows: B3, B2, B1, B0.
Implementations§
§impl ChachaDoutByteOrder
impl ChachaDoutByteOrder
pub const fn from_bits(val: u8) -> ChachaDoutByteOrder
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for ChachaDoutByteOrder
impl Clone for ChachaDoutByteOrder
§fn clone(&self) -> ChachaDoutByteOrder
fn clone(&self) -> ChachaDoutByteOrder
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 ChachaDoutByteOrder
§impl Debug for ChachaDoutByteOrder
impl Debug for ChachaDoutByteOrder
impl Eq for ChachaDoutByteOrder
§impl From<u8> for ChachaDoutByteOrder
impl From<u8> for ChachaDoutByteOrder
§fn from(val: u8) -> ChachaDoutByteOrder
fn from(val: u8) -> ChachaDoutByteOrder
Converts to this type from the input type.
§impl Ord for ChachaDoutByteOrder
impl Ord for ChachaDoutByteOrder
§fn cmp(&self, other: &ChachaDoutByteOrder) -> Ordering
fn cmp(&self, other: &ChachaDoutByteOrder) -> 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 ChachaDoutByteOrder
impl PartialEq for ChachaDoutByteOrder
§impl PartialOrd for ChachaDoutByteOrder
impl PartialOrd for ChachaDoutByteOrder
impl StructuralPartialEq for ChachaDoutByteOrder
Auto Trait Implementations§
impl Freeze for ChachaDoutByteOrder
impl RefUnwindSafe for ChachaDoutByteOrder
impl Send for ChachaDoutByteOrder
impl Sync for ChachaDoutByteOrder
impl Unpin for ChachaDoutByteOrder
impl UnsafeUnpin for ChachaDoutByteOrder
impl UnwindSafe for ChachaDoutByteOrder
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