Struct rand_chacha::ChaCha20Core
source · [−]pub struct ChaCha20Core { /* private fields */ }
Expand description
ChaCha with 20 rounds
Trait Implementations
sourceimpl BlockRngCore for ChaCha20Core
impl BlockRngCore for ChaCha20Core
sourceimpl Clone for ChaCha20Core
impl Clone for ChaCha20Core
sourcefn clone(&self) -> ChaCha20Core
fn clone(&self) -> ChaCha20Core
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 ChaCha20Core
impl Debug for ChaCha20Core
sourceimpl From<ChaCha20Core> for ChaCha20Rng
impl From<ChaCha20Core> for ChaCha20Rng
sourcefn from(core: ChaCha20Core) -> Self
fn from(core: ChaCha20Core) -> Self
Converts to this type from the input type.
sourceimpl SeedableRng for ChaCha20Core
impl SeedableRng for ChaCha20Core
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 ChaCha20Core
Auto Trait Implementations
impl RefUnwindSafe for ChaCha20Core
impl Send for ChaCha20Core
impl Sync for ChaCha20Core
impl Unpin for ChaCha20Core
impl UnwindSafe for ChaCha20Core
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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