[][src]Struct artichoke_backend::extn::stdlib::securerandom::SecureRandom

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.

Examples

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

Implementations

impl SecureRandom[src]

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

Constructs a new, default SecureRandom.

Examples

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[src]

impl Send for SecureRandom[src]

impl Sync for SecureRandom[src]

impl Unpin for SecureRandom[src]

impl UnwindSafe for SecureRandom[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>, 
[src]