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
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: 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§
source§impl Clone for randfnptr_t
impl Clone for randfnptr_t
source§fn clone(&self) -> randfnptr_t
fn clone(&self) -> randfnptr_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 randfnptr_t
impl Debug for randfnptr_t
impl Copy for randfnptr_t
Auto Trait Implementations§
impl Freeze for randfnptr_t
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§
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