pub struct ChacCha20 {
key: [u8; 32],
nonce: [u8; 12],
block: u32,
}Fields§
§key: [u8; 32]§nonce: [u8; 12]§block: u32Implementations§
Auto Trait Implementations§
impl Freeze for ChacCha20
impl RefUnwindSafe for ChacCha20
impl Send for ChacCha20
impl Sync for ChacCha20
impl Unpin for ChacCha20
impl UnwindSafe for ChacCha20
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
§impl<T, U> FromLossy<T> for Uwhere
U: From<T>,
impl<T, U> FromLossy<T> for Uwhere
U: From<T>,
§fn from_lossy(t: T) -> U
fn from_lossy(t: T) -> U
Convert to this type lossily
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T, U> IntoLossy<T> for Uwhere
T: FromLossy<U>,
impl<T, U> IntoLossy<T> for Uwhere
T: FromLossy<U>,
§fn into_lossy(self) -> T
fn into_lossy(self) -> T
Convert this type lossily