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 ChaChaCorefn clone(&self) -> ChaChaCore[src] 
fn clone(&self) -> ChaChaCoreReturns 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 ChaChaCorefn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl BlockRngCore for ChaChaCore[src] 
impl BlockRngCore for ChaChaCoretype 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 ChaChaCoretype 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) -> SelfCreate a new PRNG using the given seed. Read more
fn seed_from_u64(state: u64) -> Self[src] 
fn seed_from_u64(state: u64) -> SelfCreate 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 ChaChaCoreimpl From<ChaChaCore> for ChaChaRng[src] 
impl From<ChaChaCore> for ChaChaRngfn from(core: ChaChaCore) -> Self[src] 
fn from(core: ChaChaCore) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ChaChaCore
impl Send for ChaChaCoreimpl Sync for ChaChaCore
impl Sync for ChaChaCore