Skip to main content

RngU64Source

Trait RngU64Source 

Source
pub trait RngU64Source: Send + Sync {
    // Required method
    fn next_u64(&mut self) -> u64;
}
Expand description

Source of u64 random values. Trait so tests can supply a deterministic counter via a different impl.

Required Methods§

Source

fn next_u64(&mut self) -> u64

Pull the next u64.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§