Enum ChachaOrSalsa
#[repr(u8)]pub enum ChachaOrSalsa {
ChaCha = 0,
Salsa = 1,
}Variants§
Implementations§
§impl ChachaOrSalsa
impl ChachaOrSalsa
pub const fn from_bits(val: u8) -> ChachaOrSalsa
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for ChachaOrSalsa
impl Clone for ChachaOrSalsa
§fn clone(&self) -> ChachaOrSalsa
fn clone(&self) -> ChachaOrSalsa
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 ChachaOrSalsa
§impl Debug for ChachaOrSalsa
impl Debug for ChachaOrSalsa
impl Eq for ChachaOrSalsa
§impl From<u8> for ChachaOrSalsa
impl From<u8> for ChachaOrSalsa
§fn from(val: u8) -> ChachaOrSalsa
fn from(val: u8) -> ChachaOrSalsa
Converts to this type from the input type.
§impl Ord for ChachaOrSalsa
impl Ord for ChachaOrSalsa
§fn cmp(&self, other: &ChachaOrSalsa) -> Ordering
fn cmp(&self, other: &ChachaOrSalsa) -> 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 ChachaOrSalsa
impl PartialEq for ChachaOrSalsa
§impl PartialOrd for ChachaOrSalsa
impl PartialOrd for ChachaOrSalsa
impl StructuralPartialEq for ChachaOrSalsa
Auto Trait Implementations§
impl Freeze for ChachaOrSalsa
impl RefUnwindSafe for ChachaOrSalsa
impl Send for ChachaOrSalsa
impl Sync for ChachaOrSalsa
impl Unpin for ChachaOrSalsa
impl UnsafeUnpin for ChachaOrSalsa
impl UnwindSafe for ChachaOrSalsa
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