Struct rps_sys::RpsRandomNumberGenerator
source · #[repr(C)]pub struct RpsRandomNumberGenerator {
pub pfnRandomUniformInt: PFN_rpsRandomUniformInt,
pub pContext: *mut c_void,
}Expand description
Random number generator interface.
Fields§
§pfnRandomUniformInt: PFN_rpsRandomUniformIntPointer to a function for generating random uniform integers.
pContext: *mut c_voidContext to be passed to the generator function.
Trait Implementations§
source§impl Clone for RpsRandomNumberGenerator
impl Clone for RpsRandomNumberGenerator
source§fn clone(&self) -> RpsRandomNumberGenerator
fn clone(&self) -> RpsRandomNumberGenerator
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 more