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 for SecureRandom
impl PartialEq for SecureRandom
Source§impl PartialOrd for SecureRandom
impl PartialOrd for SecureRandom
impl Copy for SecureRandom
impl Eq for SecureRandom
impl StructuralPartialEq for SecureRandom
Auto Trait Implementations§
impl Freeze for SecureRandom
impl RefUnwindSafe for SecureRandom
impl Send for SecureRandom
impl Sync for SecureRandom
impl Unpin for SecureRandom
impl UnwindSafe for SecureRandom
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