Struct UnwrapErr

struct UnwrapErr<R: TryRngCore>(268)

Wrapper around TryRngCore implementation which implements RngCore by panicking on potential errors.

Implementations

impl<R> Freeze for UnwrapErr<R>

impl<R> RefUnwindSafe for UnwrapErr<R>

impl<R> Send for UnwrapErr<R>

impl<R> Sync for UnwrapErr<R>

impl<R> TryCryptoRng for UnwrapErr<R>

impl<R> TryRngCore for UnwrapErr<R>

fn try_next_u32(self: &mut Self) -> Result<u32, <R as TryRngCore>::Error>
fn try_next_u64(self: &mut Self) -> Result<u64, <R as TryRngCore>::Error>
fn try_fill_bytes(self: &mut Self, dst: &mut [u8]) -> Result<(), <R as TryRngCore>::Error>

impl<R> Unpin for UnwrapErr<R>

impl<R> UnsafeUnpin for UnwrapErr<R>

impl<R> UnwindSafe for UnwrapErr<R>

impl<R: $crate::clone::Clone + TryRngCore> Clone for UnwrapErr<R>

fn clone(self: &Self) -> UnwrapErr<R>

impl<R: $crate::cmp::Eq + TryRngCore> Eq for UnwrapErr<R>

impl<R: $crate::cmp::PartialEq + TryRngCore> PartialEq for UnwrapErr<R>

fn eq(self: &Self, other: &UnwrapErr<R>) -> bool

impl<R: $crate::default::Default + TryRngCore> Default for UnwrapErr<R>

fn default() -> UnwrapErr<R>

impl<R: $crate::fmt::Debug + TryRngCore> Debug for UnwrapErr<R>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<R: $crate::hash::Hash + TryRngCore> Hash for UnwrapErr<R>

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl<R: $crate::marker::Copy + TryRngCore> Copy for UnwrapErr<R>

impl<R: TryCryptoRng> CryptoRng for UnwrapErr<R>

impl<R: TryRngCore> RngCore for UnwrapErr<R>

fn next_u32(self: &mut Self) -> u32
fn next_u64(self: &mut Self) -> u64
fn fill_bytes(self: &mut Self, dst: &mut [u8])

impl<R: TryRngCore> StructuralPartialEq for UnwrapErr<R>

impl<T> Any for UnwrapErr<R>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for UnwrapErr<R>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for UnwrapErr<R>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for UnwrapErr<R>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for UnwrapErr<R>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for UnwrapErr<R>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for UnwrapErr<R>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for UnwrapErr<R>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for UnwrapErr<R>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>