#[repr(C)]pub struct igraph_rng_type_t {Show 14 fields
pub name: *const c_char,
pub bits: u8,
pub init: Option<unsafe extern "C" fn(state: *mut *mut c_void) -> igraph_error_t>,
pub destroy: Option<unsafe extern "C" fn(state: *mut c_void)>,
pub seed: Option<unsafe extern "C" fn(state: *mut c_void, seed: igraph_uint_t) -> igraph_error_t>,
pub get: Option<unsafe extern "C" fn(state: *mut c_void) -> igraph_uint_t>,
pub get_int: Option<unsafe extern "C" fn(state: *mut c_void, l: igraph_int_t, h: igraph_int_t) -> igraph_int_t>,
pub get_real: Option<unsafe extern "C" fn(state: *mut c_void) -> igraph_real_t>,
pub get_norm: Option<unsafe extern "C" fn(state: *mut c_void) -> igraph_real_t>,
pub get_geom: Option<unsafe extern "C" fn(state: *mut c_void, p: igraph_real_t) -> igraph_real_t>,
pub get_binom: Option<unsafe extern "C" fn(state: *mut c_void, n: igraph_int_t, p: igraph_real_t) -> igraph_real_t>,
pub get_exp: Option<unsafe extern "C" fn(state: *mut c_void, rate: igraph_real_t) -> igraph_real_t>,
pub get_gamma: Option<unsafe extern "C" fn(state: *mut c_void, shape: igraph_real_t, scale: igraph_real_t) -> igraph_real_t>,
pub get_pois: Option<unsafe extern "C" fn(state: *mut c_void, mu: igraph_real_t) -> igraph_real_t>,
}Fields§
§name: *const c_char§bits: u8§init: Option<unsafe extern "C" fn(state: *mut *mut c_void) -> igraph_error_t>§destroy: Option<unsafe extern "C" fn(state: *mut c_void)>§seed: Option<unsafe extern "C" fn(state: *mut c_void, seed: igraph_uint_t) -> igraph_error_t>§get: Option<unsafe extern "C" fn(state: *mut c_void) -> igraph_uint_t>§get_int: Option<unsafe extern "C" fn(state: *mut c_void, l: igraph_int_t, h: igraph_int_t) -> igraph_int_t>§get_real: Option<unsafe extern "C" fn(state: *mut c_void) -> igraph_real_t>§get_norm: Option<unsafe extern "C" fn(state: *mut c_void) -> igraph_real_t>§get_geom: Option<unsafe extern "C" fn(state: *mut c_void, p: igraph_real_t) -> igraph_real_t>§get_binom: Option<unsafe extern "C" fn(state: *mut c_void, n: igraph_int_t, p: igraph_real_t) -> igraph_real_t>§get_exp: Option<unsafe extern "C" fn(state: *mut c_void, rate: igraph_real_t) -> igraph_real_t>§get_gamma: Option<unsafe extern "C" fn(state: *mut c_void, shape: igraph_real_t, scale: igraph_real_t) -> igraph_real_t>§get_pois: Option<unsafe extern "C" fn(state: *mut c_void, mu: igraph_real_t) -> igraph_real_t>Trait Implementations§
Source§impl Clone for igraph_rng_type_t
impl Clone for igraph_rng_type_t
Source§fn clone(&self) -> igraph_rng_type_t
fn clone(&self) -> igraph_rng_type_t
Returns a duplicate 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 igraph_rng_type_t
impl Debug for igraph_rng_type_t
impl Copy for igraph_rng_type_t
Auto Trait Implementations§
impl Freeze for igraph_rng_type_t
impl RefUnwindSafe for igraph_rng_type_t
impl !Send for igraph_rng_type_t
impl !Sync for igraph_rng_type_t
impl Unpin for igraph_rng_type_t
impl UnwindSafe for igraph_rng_type_t
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