Struct rand_chacha::ChaCha8Core
source · [−]pub struct ChaCha8Core { /* private fields */ }
Expand description
ChaCha with 8 rounds
Trait Implementations
sourceimpl BlockRngCore for ChaCha8Core
impl BlockRngCore for ChaCha8Core
sourceimpl Clone for ChaCha8Core
impl Clone for ChaCha8Core
sourcefn clone(&self) -> ChaCha8Core
fn clone(&self) -> ChaCha8Core
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChaCha8Core
impl Debug for ChaCha8Core
sourceimpl From<ChaCha8Core> for ChaCha8Rng
impl From<ChaCha8Core> for ChaCha8Rng
sourcefn from(core: ChaCha8Core) -> Self
fn from(core: ChaCha8Core) -> Self
Performs the conversion.
sourceimpl PartialEq<ChaCha8Core> for ChaCha8Core
impl PartialEq<ChaCha8Core> for ChaCha8Core
sourcefn eq(&self, other: &ChaCha8Core) -> bool
fn eq(&self, other: &ChaCha8Core) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChaCha8Core) -> bool
fn ne(&self, other: &ChaCha8Core) -> bool
This method tests for !=
.
sourceimpl SeedableRng for ChaCha8Core
impl SeedableRng for ChaCha8Core
type Seed = [u8; 32]
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
sourcefn seed_from_u64(state: u64) -> Self
fn seed_from_u64(state: u64) -> Self
Create a new PRNG using a u64
seed. Read more
sourcefn 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 more
sourcefn from_entropy() -> Self
fn from_entropy() -> Self
impl CryptoRng for ChaCha8Core
impl Eq for ChaCha8Core
impl StructuralEq for ChaCha8Core
impl StructuralPartialEq for ChaCha8Core
Auto Trait Implementations
impl RefUnwindSafe for ChaCha8Core
impl Send for ChaCha8Core
impl Sync for ChaCha8Core
impl Unpin for ChaCha8Core
impl UnwindSafe for ChaCha8Core
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more