pub struct Clamp<'a, T> {
pub source: &'a dyn NoiseFn<T>,
pub bounds: (f64, f64),
}
Expand description
Noise function that clamps the output value from the source function to a range of values.
Fields§
§source: &'a dyn NoiseFn<T>
Outputs a value.
bounds: (f64, f64)
Bound of the clamping range. Default is -1.0 to 1.0.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for Clamp<'a, T>
impl<'a, T> !Send for Clamp<'a, T>
impl<'a, T> !Sync for Clamp<'a, T>
impl<'a, T> Unpin for Clamp<'a, T>
impl<'a, T> !UnwindSafe for Clamp<'a, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more