pub struct Noise { /* private fields */ }Expand description
Provides way to generate some noise to floating point value.
Implementations
sourceimpl Noise
impl Noise
sourcepub fn new(
probability: f64,
range: (f64, f64),
random: Arc<dyn Random + Sync + Send + 'static>
) -> Noise
pub fn new(
probability: f64,
range: (f64, f64),
random: Arc<dyn Random + Sync + Send + 'static>
) -> Noise
Creates a new instance of Noise.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Noise
impl Send for Noise
impl Sync for Noise
impl Unpin for Noise
impl !UnwindSafe for Noise
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more