pub struct GradientSettings { /* private fields */ }
Implementations§
Source§impl GradientSettings
impl GradientSettings
pub fn default(dim: NoiseDimensions) -> GradientSettings
pub fn with_seed(&mut self, seed: i32) -> &mut GradientSettings
pub fn with_freq(&mut self, freq: f32) -> &mut GradientSettings
Sourcepub fn wrap(self) -> NoiseType
pub fn wrap(self) -> NoiseType
If you want to call noise functions by hand, call wrap on the settings to get back a NoiseType to call the noise functions with
Trait Implementations§
Source§impl Clone for GradientSettings
impl Clone for GradientSettings
Source§fn clone(&self) -> GradientSettings
fn clone(&self) -> GradientSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for GradientSettings
Auto Trait Implementations§
impl Freeze for GradientSettings
impl RefUnwindSafe for GradientSettings
impl Send for GradientSettings
impl Sync for GradientSettings
impl Unpin for GradientSettings
impl UnwindSafe for GradientSettings
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