Struct gmp_mpfr_sys::gmp::randstate_t
source · [−]#[repr(C)]pub struct randstate_t {
pub seed: randseed_t,
pub alg: MaybeUninit<c_int>,
pub algdata: *const randfnptr_t,
}
Expand description
See: gmp_randstate_t
Future compatibility
The fields listed here are considered internal details. These
internals may change in new minor releases of this crate, though
they will be kept unchanged for patch releases. Any code that
makes use of these internals should list the dependency as
version = "~1.4"
inside Cargo.toml, not version = "1.4"
.
Fields
seed: randseed_t
Internal implementation detail: state of the generator.
alg: MaybeUninit<c_int>
Internal implementation detail: unused.
algdata: *const randfnptr_t
Internal implementation detail: pointer to function pointers structure.
Trait Implementations
sourceimpl Clone for randstate_t
impl Clone for randstate_t
sourcefn clone(&self) -> randstate_t
fn clone(&self) -> randstate_t
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 more
sourceimpl Debug for randstate_t
impl Debug for randstate_t
impl Copy for randstate_t
Auto Trait Implementations
impl RefUnwindSafe for randstate_t
impl !Send for randstate_t
impl !Sync for randstate_t
impl Unpin for randstate_t
impl UnwindSafe for randstate_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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