Type Alias boring_sys::RAND_METHOD
source · pub type RAND_METHOD = rand_meth_st;Aliased Type§
struct RAND_METHOD {
pub seed: Option<unsafe extern "C" fn(_: *const c_void, _: i32)>,
pub bytes: Option<unsafe extern "C" fn(_: *mut u8, _: usize) -> i32>,
pub cleanup: Option<unsafe extern "C" fn()>,
pub add: Option<unsafe extern "C" fn(_: *const c_void, _: i32, _: f64)>,
pub pseudorand: Option<unsafe extern "C" fn(_: *mut u8, _: usize) -> i32>,
pub status: Option<unsafe extern "C" fn() -> i32>,
}Fields§
§seed: Option<unsafe extern "C" fn(_: *const c_void, _: i32)>§bytes: Option<unsafe extern "C" fn(_: *mut u8, _: usize) -> i32>§cleanup: Option<unsafe extern "C" fn()>§add: Option<unsafe extern "C" fn(_: *const c_void, _: i32, _: f64)>§pseudorand: Option<unsafe extern "C" fn(_: *mut u8, _: usize) -> i32>§status: Option<unsafe extern "C" fn() -> i32>Trait Implementations§
source§impl Clone for rand_meth_st
impl Clone for rand_meth_st
source§fn clone(&self) -> rand_meth_st
fn clone(&self) -> rand_meth_st
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 rand_meth_st
impl Debug for rand_meth_st
source§impl Default for rand_meth_st
impl Default for rand_meth_st
source§fn default() -> rand_meth_st
fn default() -> rand_meth_st
Returns the “default value” for a type. Read more
source§impl PartialEq<rand_meth_st> for rand_meth_st
impl PartialEq<rand_meth_st> for rand_meth_st
source§fn eq(&self, other: &rand_meth_st) -> bool
fn eq(&self, other: &rand_meth_st) -> bool
This method tests for
self and other values to be equal, and is used
by ==.