pub struct PhantomRng;Expand description
Zero-sized marker type for RNG-less heuristics
Trait Implementations§
Source§impl AsMut<PhantomRng> for PhantomRng
impl AsMut<PhantomRng> for PhantomRng
Source§impl AsRef<PhantomRng> for PhantomRng
impl AsRef<PhantomRng> for PhantomRng
Source§impl Debug for PhantomRng
impl Debug for PhantomRng
Source§impl Default for PhantomRng
impl Default for PhantomRng
Source§fn default() -> PhantomRng
fn default() -> PhantomRng
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PhantomRng
impl RefUnwindSafe for PhantomRng
impl Send for PhantomRng
impl Sync for PhantomRng
impl Unpin for PhantomRng
impl UnwindSafe for PhantomRng
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<R> TryRngCore for R
impl<R> TryRngCore for R
Source§type Error = Infallible
type Error = Infallible
The type returned in the event of a RNG error.
Source§fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
Return the next random
u32.Source§fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
Return the next random
u64.Source§fn try_fill_bytes(
&mut self,
dst: &mut [u8],
) -> Result<(), <R as TryRngCore>::Error>
fn try_fill_bytes( &mut self, dst: &mut [u8], ) -> Result<(), <R as TryRngCore>::Error>
Fill
dest entirely with random data.Source§fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
Wrap RNG with the
UnwrapMut wrapper.