Struct spinoso_securerandom::SecureRandom[][src]

pub struct SecureRandom { /* fields omitted */ }

A handle to the underlying secure random number generator.

This is a copy zero-sized type with no associated methods. This type exists so a Ruby VM can attempt to unbox this type and statically dispatch to functions defined in this crate.


const RANDOM: SecureRandom = SecureRandom::new();


impl SecureRandom[src]

#[must_use]pub const fn new() -> Self[src]

Constructs a new, default SecureRandom.


const RANDOM: SecureRandom = SecureRandom::new();

Trait Implementations

impl Clone for SecureRandom[src]

impl Copy for SecureRandom[src]

impl Debug for SecureRandom[src]

impl Default for SecureRandom[src]

impl Eq for SecureRandom[src]

impl Hash for SecureRandom[src]

impl Ord for SecureRandom[src]

impl PartialEq<SecureRandom> for SecureRandom[src]

impl PartialOrd<SecureRandom> for SecureRandom[src]

impl StructuralEq for SecureRandom[src]

impl StructuralPartialEq for SecureRandom[src]

Auto Trait Implementations

impl RefUnwindSafe for SecureRandom

impl Send for SecureRandom

impl Sync for SecureRandom

impl Unpin for SecureRandom

impl UnwindSafe for SecureRandom

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,