Trait nannou::noise::Seedable

source ·
pub trait Seedable {
    // Required methods
    fn set_seed(self, seed: u32) -> Self;
    fn seed(&self) -> u32;
}
Expand description

Trait for functions that require a seed before generating their values

Required Methods§

source

fn set_seed(self, seed: u32) -> Self

Set the seed for the function implementing the Seedable trait

source

fn seed(&self) -> u32

Getter to retrieve the seed from the function

Object Safety§

This trait is not object safe.

Implementors§