Expand description
An implementation of SecureRandom
that always fills the output slice
with the slice in bytes
. The length of the slice given to slice
must match exactly.
Fields
bytes: &'a [u8]
Trait Implementations
sourceimpl<'a> Debug for FixedSliceRandom<'a>
impl<'a> Debug for FixedSliceRandom<'a>
sourceimpl<'a> SecureRandom for FixedSliceRandom<'a>
impl<'a> SecureRandom for FixedSliceRandom<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for FixedSliceRandom<'a>
impl<'a> Send for FixedSliceRandom<'a>
impl<'a> Sync for FixedSliceRandom<'a>
impl<'a> Unpin for FixedSliceRandom<'a>
impl<'a> UnwindSafe for FixedSliceRandom<'a>
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