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.5"
inside Cargo.toml, not version = "1.5"
.
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§
source§impl Clone for randstate_t
impl Clone for randstate_t
source§fn clone(&self) -> randstate_t
fn clone(&self) -> randstate_t
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 randstate_t
impl Debug for randstate_t
impl Copy for randstate_t
Auto Trait Implementations§
impl Freeze for randstate_t
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§
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