pub struct FixedByteRandom {
pub byte: u8,
}
Expand description
An implementation of SecureRandom
that always fills the output slice
with the given byte.
Fields
byte: u8
Trait Implementations
sourceimpl Debug for FixedByteRandom
impl Debug for FixedByteRandom
sourceimpl SecureRandom for FixedByteRandom
impl SecureRandom for FixedByteRandom
Auto Trait Implementations
impl RefUnwindSafe for FixedByteRandom
impl Send for FixedByteRandom
impl Sync for FixedByteRandom
impl Unpin for FixedByteRandom
impl UnwindSafe for FixedByteRandom
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