pub struct UnwrapErr<R: TryRngCore>(pub R);
Expand description
Wrapper around TryRngCore
implementation which implements RngCore
by panicking on potential errors.
Tuple Fields§
§0: R
Trait Implementations§
source§impl<R: PartialEq + TryRngCore> PartialEq for UnwrapErr<R>
impl<R: PartialEq + TryRngCore> PartialEq for UnwrapErr<R>
source§impl<R: TryRngCore> RngCore for UnwrapErr<R>
impl<R: TryRngCore> RngCore for UnwrapErr<R>
impl<R: Copy + TryRngCore> Copy for UnwrapErr<R>
impl<R: TryCryptoRng> CryptoRng for UnwrapErr<R>
impl<R: Eq + TryRngCore> Eq for UnwrapErr<R>
impl<R: TryRngCore> StructuralPartialEq for UnwrapErr<R>
Auto Trait Implementations§
impl<R> Freeze for UnwrapErr<R>where
R: Freeze,
impl<R> RefUnwindSafe for UnwrapErr<R>where
R: RefUnwindSafe,
impl<R> Send for UnwrapErr<R>where
R: Send,
impl<R> Sync for UnwrapErr<R>where
R: Sync,
impl<R> Unpin for UnwrapErr<R>where
R: Unpin,
impl<R> UnwindSafe for UnwrapErr<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)