Struct spinoso_securerandom::SecureRandom
source · pub struct SecureRandom { /* private fields */ }
Expand description
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§
Trait Implementations§
source§impl Clone for SecureRandom
impl Clone for SecureRandom
source§fn clone(&self) -> SecureRandom
fn clone(&self) -> SecureRandom
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SecureRandom
impl Debug for SecureRandom
source§impl Default for SecureRandom
impl Default for SecureRandom
source§fn default() -> SecureRandom
fn default() -> SecureRandom
Returns the “default value” for a type. Read more
source§impl Hash for SecureRandom
impl Hash for SecureRandom
source§impl Ord for SecureRandom
impl Ord for SecureRandom
source§fn cmp(&self, other: &SecureRandom) -> Ordering
fn cmp(&self, other: &SecureRandom) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SecureRandom> for SecureRandom
impl PartialEq<SecureRandom> for SecureRandom
source§fn eq(&self, other: &SecureRandom) -> bool
fn eq(&self, other: &SecureRandom) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SecureRandom> for SecureRandom
impl PartialOrd<SecureRandom> for SecureRandom
source§fn partial_cmp(&self, other: &SecureRandom) -> Option<Ordering>
fn partial_cmp(&self, other: &SecureRandom) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more