pub struct RandCore<R>(pub R);Expand description
Any rand_core::Rng as a Random source, for a game that shares one generator with
the rest of a program (feature rand_core).
A wrapper rather than an impl for every generator, so the feature only adds this type
and never changes which generators are Random.
Tuple Fields§
§0: RTrait Implementations§
impl<R: Eq> Eq for RandCore<R>
impl<R: PartialEq> StructuralPartialEq for RandCore<R>
Auto Trait Implementations§
impl<R> Forget for RandCore<R>
impl<R> Freeze for RandCore<R>where
R: Freeze,
impl<R> Move for RandCore<R>
impl<R> RefUnwindSafe for RandCore<R>where
R: RefUnwindSafe,
impl<R> Send for RandCore<R>where
R: Send,
impl<R> Sync for RandCore<R>where
R: Sync,
impl<R> Unpin for RandCore<R>where
R: Unpin,
impl<R> UnsafeUnpin for RandCore<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for RandCore<R>where
R: UnwindSafe,
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