pub trait PositionalRandom {
// Required methods
fn at(&self, x: i32, y: i32, z: i32) -> RandomSource;
fn with_hash_of(&self, hash: &NameHash) -> RandomSource;
fn with_seed(&self, seed: u64) -> RandomSource;
}Expand description
A trait for positional random number generators.
Required Methods§
fn at(&self, x: i32, y: i32, z: i32) -> RandomSource
fn with_hash_of(&self, hash: &NameHash) -> RandomSource
fn with_seed(&self, seed: u64) -> RandomSource
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".