Struct gmp_mpfr_sys::gmp::randfnptr_t
source · #[repr(C)]pub struct randfnptr_t {
pub seed: unsafe extern "C" fn(rstate: *mut randstate_t, seed: *const mpz_t),
pub get: unsafe extern "C" fn(rstate: *mut randstate_t, dest: *mut limb_t, nbits: c_ulong),
pub clear: unsafe extern "C" fn(rstate: *mut randstate_t),
pub iset: unsafe extern "C" fn(dst: *mut randstate_t, src: *const randstate_t),
}
Expand description
The type for the algdata
field in the randstate_t
struct.
Future compatibility
This type is 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: unsafe extern "C" fn(rstate: *mut randstate_t, seed: *const mpz_t)
Internal implementation detail: pointer to function.
get: unsafe extern "C" fn(rstate: *mut randstate_t, dest: *mut limb_t, nbits: c_ulong)
Internal implementation detail: pointer to function.
clear: unsafe extern "C" fn(rstate: *mut randstate_t)
Internal implementation detail: pointer to function.
iset: unsafe extern "C" fn(dst: *mut randstate_t, src: *const randstate_t)
Internal implementation detail: pointer to function.
Trait Implementations
sourceimpl Clone for randfnptr_t
impl Clone for randfnptr_t
sourcefn clone(&self) -> randfnptr_t
fn clone(&self) -> randfnptr_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 moresourceimpl Debug for randfnptr_t
impl Debug for randfnptr_t
impl Copy for randfnptr_t
Auto Trait Implementations
impl RefUnwindSafe for randfnptr_t
impl Send for randfnptr_t
impl Sync for randfnptr_t
impl Unpin for randfnptr_t
impl UnwindSafe for randfnptr_t
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