logo
#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.