Struct rand::prng::chacha::ChaChaCore [−][src]
pub struct ChaChaCore { /* fields omitted */ }
The core of ChaChaRng
, used with BlockRng
.
Trait Implementations
impl Clone for ChaChaCore
[src]
impl Clone for ChaChaCore
fn clone(&self) -> ChaChaCore
[src]
fn clone(&self) -> ChaChaCore
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ChaChaCore
[src]
impl Debug for ChaChaCore
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl BlockRngCore for ChaChaCore
[src]
impl BlockRngCore for ChaChaCore
type Item = u32
Results element type, e.g. u32
.
type Results = [u32; 16]
Results type. This is the 'block' an RNG implementing BlockRngCore
generates, which will usually be an array like [u32; 16]
. Read more
fn generate(&mut self, results: &mut Self::Results)
[src]
fn generate(&mut self, results: &mut Self::Results)
Generate a new block of results.
impl SeedableRng for ChaChaCore
[src]
impl SeedableRng for ChaChaCore
type Seed = [u8; 32]
Seed type, which is restricted to types mutably-dereferencable as u8
arrays (we recommend [u8; N]
for some N
). Read more
fn from_seed(seed: Self::Seed) -> Self
[src]
fn from_seed(seed: Self::Seed) -> Self
Create a new PRNG using the given seed. Read more
fn seed_from_u64(state: u64) -> Self
[src]
fn seed_from_u64(state: u64) -> Self
Create a new PRNG using a u64
seed. Read more
fn from_rng<R>(rng: R) -> Result<Self, Error> where
R: RngCore,
[src]
fn from_rng<R>(rng: R) -> Result<Self, Error> where
R: RngCore,
Create a new PRNG seeded from another Rng
. Read more
impl CryptoRng for ChaChaCore
[src]
impl CryptoRng for ChaChaCore
impl From<ChaChaCore> for ChaChaRng
[src]
impl From<ChaChaCore> for ChaChaRng
fn from(core: ChaChaCore) -> Self
[src]
fn from(core: ChaChaCore) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for ChaChaCore
impl Send for ChaChaCore
impl Sync for ChaChaCore
impl Sync for ChaChaCore