#[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
sourceimpl Clone for rand_meth_st
impl Clone for rand_meth_st
sourcefn clone(&self) -> rand_meth_st
fn clone(&self) -> rand_meth_st
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for rand_meth_st
impl Debug for rand_meth_st
sourceimpl Default for rand_meth_st
impl Default for rand_meth_st
sourcefn default() -> rand_meth_st
fn default() -> rand_meth_st
Returns the “default value” for a type. Read more
sourceimpl PartialEq<rand_meth_st> for rand_meth_st
impl PartialEq<rand_meth_st> for rand_meth_st
sourcefn eq(&self, other: &rand_meth_st) -> bool
fn eq(&self, other: &rand_meth_st) -> bool
impl Copy for rand_meth_st
impl Eq for rand_meth_st
impl StructuralEq for rand_meth_st
impl StructuralPartialEq for rand_meth_st
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more