Struct rand_chacha::ChaCha12Core
source · [−]pub struct ChaCha12Core { /* private fields */ }
Expand description
ChaCha with 12 rounds
Trait Implementations
sourceimpl BlockRngCore for ChaCha12Core
impl BlockRngCore for ChaCha12Core
sourceimpl Clone for ChaCha12Core
impl Clone for ChaCha12Core
sourcefn clone(&self) -> ChaCha12Core
fn clone(&self) -> ChaCha12Core
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ChaCha12Core
impl Debug for ChaCha12Core
sourceimpl From<ChaCha12Core> for ChaCha12Rng
impl From<ChaCha12Core> for ChaCha12Rng
sourcefn from(core: ChaCha12Core) -> Self
fn from(core: ChaCha12Core) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ChaCha12Core> for ChaCha12Core
impl PartialEq<ChaCha12Core> for ChaCha12Core
sourcefn eq(&self, other: &ChaCha12Core) -> bool
fn eq(&self, other: &ChaCha12Core) -> bool
sourceimpl SeedableRng for ChaCha12Core
impl SeedableRng for ChaCha12Core
type Seed = [u8; 32]
type Seed = [u8; 32]
Seed type, which is restricted to types mutably-dereferenceable as
u8
arrays (we recommend [u8; N]
for some N
). Read moresourcefn seed_from_u64(state: u64) -> Self
fn seed_from_u64(state: u64) -> Self
Create a new PRNG using a
u64
seed. Read moresourcefn from_rng<R>(rng: R) -> Result<Self, Error>where
R: RngCore,
fn from_rng<R>(rng: R) -> Result<Self, Error>where
R: RngCore,
Create a new PRNG seeded from another
Rng
. Read moresourcefn from_entropy() -> Self
fn from_entropy() -> Self
impl CryptoRng for ChaCha12Core
impl Eq for ChaCha12Core
impl StructuralEq for ChaCha12Core
impl StructuralPartialEq for ChaCha12Core
Auto Trait Implementations
impl RefUnwindSafe for ChaCha12Core
impl Send for ChaCha12Core
impl Sync for ChaCha12Core
impl Unpin for ChaCha12Core
impl UnwindSafe for ChaCha12Core
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more