#[repr(C)]pub struct rand_meth_st {
pub seed: Option<unsafe extern "C" fn(buf: *const c_void, num: c_int)>,
pub bytes: Option<unsafe extern "C" fn(buf: *mut u8, num: usize) -> c_int>,
pub cleanup: Option<unsafe extern "C" fn()>,
pub add: Option<unsafe extern "C" fn(buf: *const c_void, num: c_int, entropy: f64)>,
pub pseudorand: Option<unsafe extern "C" fn(buf: *mut u8, num: usize) -> c_int>,
pub status: Option<unsafe extern "C" fn() -> c_int>,
}
Fields§
§seed: Option<unsafe extern "C" fn(buf: *const c_void, num: c_int)>
§bytes: Option<unsafe extern "C" fn(buf: *mut u8, num: usize) -> c_int>
§cleanup: Option<unsafe extern "C" fn()>
§add: Option<unsafe extern "C" fn(buf: *const c_void, num: c_int, entropy: f64)>
§pseudorand: Option<unsafe extern "C" fn(buf: *mut u8, num: usize) -> c_int>
§status: Option<unsafe extern "C" fn() -> c_int>
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 for rand_meth_st
impl PartialEq for rand_meth_st
impl Copy for rand_meth_st
impl Eq for rand_meth_st
impl StructuralPartialEq for rand_meth_st
Auto Trait Implementations§
impl Freeze for rand_meth_st
impl RefUnwindSafe for rand_meth_st
impl Send for rand_meth_st
impl Sync for rand_meth_st
impl Unpin for rand_meth_st
impl UnwindSafe for rand_meth_st
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