Trait rand::AsByteSliceMut
source · pub trait AsByteSliceMut {
// Required methods
fn as_byte_slice_mut(&mut self) -> &mut [u8] ⓘ;
fn to_le(&mut self);
}
Expand description
Trait for casting types to byte slices
This is used by the Rng::fill
and Rng::try_fill
methods.
Required Methods§
sourcefn as_byte_slice_mut(&mut self) -> &mut [u8] ⓘ
fn as_byte_slice_mut(&mut self) -> &mut [u8] ⓘ
Return a mutable reference to self as a byte slice