diff --git a/src/noise_fns/combiners/add.rs b/src/noise_fns/combiners/add.rs index d92790c3..71fe09b4 100644 --- a/src/noise_fns/combiners/add.rs +++ b/src/noise_fns/combiners/add.rs @@ -3,7 +3,7 @@ use core::marker::PhantomData; /// Noise function that outputs the sum of the two output values from two source /// functions. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Add where Source1: NoiseFn, diff --git a/src/noise_fns/combiners/max.rs b/src/noise_fns/combiners/max.rs index 06e7be9a..1cae46dd 100644 --- a/src/noise_fns/combiners/max.rs +++ b/src/noise_fns/combiners/max.rs @@ -3,7 +3,7 @@ use core::marker::PhantomData; /// Noise function that outputs the larger of the two output values from two source /// functions. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Max where Source1: NoiseFn, diff --git a/src/noise_fns/combiners/min.rs b/src/noise_fns/combiners/min.rs index bcbe11d2..4a1f1c93 100644 --- a/src/noise_fns/combiners/min.rs +++ b/src/noise_fns/combiners/min.rs @@ -3,7 +3,7 @@ use core::marker::PhantomData; /// Noise function that outputs the smaller of the two output values from two source /// functions. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Min where Source1: NoiseFn, diff --git a/src/noise_fns/combiners/multiply.rs b/src/noise_fns/combiners/multiply.rs index 19a494f0..832c529e 100644 --- a/src/noise_fns/combiners/multiply.rs +++ b/src/noise_fns/combiners/multiply.rs @@ -3,7 +3,7 @@ use core::marker::PhantomData; /// Noise function that outputs the product of the two output values from two source /// functions. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Multiply where Source1: NoiseFn, diff --git a/src/noise_fns/combiners/power.rs b/src/noise_fns/combiners/power.rs index fddb7535..c1a176f7 100644 --- a/src/noise_fns/combiners/power.rs +++ b/src/noise_fns/combiners/power.rs @@ -3,7 +3,7 @@ use core::marker::PhantomData; /// Noise function that raises the output value from the first source function /// to the power of the output value of the second source function. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Power where Source1: NoiseFn, diff --git a/src/noise_fns/modifiers/abs.rs b/src/noise_fns/modifiers/abs.rs index 624c2928..95208ede 100644 --- a/src/noise_fns/modifiers/abs.rs +++ b/src/noise_fns/modifiers/abs.rs @@ -3,7 +3,7 @@ use core::marker::PhantomData; /// Noise function that outputs the absolute value of the output value from the /// source function. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Abs where Source: NoiseFn, diff --git a/src/noise_fns/modifiers/clamp.rs b/src/noise_fns/modifiers/clamp.rs index 8f218d40..23f791e5 100644 --- a/src/noise_fns/modifiers/clamp.rs +++ b/src/noise_fns/modifiers/clamp.rs @@ -3,7 +3,7 @@ use core::marker::PhantomData; /// Noise function that clamps the output value from the source function to a /// range of values. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Clamp where Source: NoiseFn, diff --git a/src/noise_fns/modifiers/curve.rs b/src/noise_fns/modifiers/curve.rs index 6fc1883a..9015ac16 100644 --- a/src/noise_fns/modifiers/curve.rs +++ b/src/noise_fns/modifiers/curve.rs @@ -16,7 +16,7 @@ use core::marker::PhantomData; /// four control points to the curve. If there is less than four control /// points, the get() method panics. Each control point can have any input /// and output value, although no two control points can have the same input. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Curve where Source: NoiseFn, @@ -30,7 +30,7 @@ where phantom: PhantomData, } -#[derive(Clone)] +#[derive(Clone, Debug)] struct ControlPoint { input: T, output: T, diff --git a/src/noise_fns/modifiers/exponent.rs b/src/noise_fns/modifiers/exponent.rs index bbc7fc4d..95a87777 100644 --- a/src/noise_fns/modifiers/exponent.rs +++ b/src/noise_fns/modifiers/exponent.rs @@ -8,7 +8,7 @@ use core::marker::PhantomData; /// this noise function first normalizes the output value (the range becomes 0.0 /// to 1.0), maps that value onto an exponential curve, then rescales that /// value back to the original range. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Exponent where Source: NoiseFn, diff --git a/src/noise_fns/modifiers/negate.rs b/src/noise_fns/modifiers/negate.rs index 18db6d2a..333756de 100644 --- a/src/noise_fns/modifiers/negate.rs +++ b/src/noise_fns/modifiers/negate.rs @@ -2,7 +2,7 @@ use crate::noise_fns::NoiseFn; use core::marker::PhantomData; /// Noise function that negates the output value from the source function. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Negate where Source: NoiseFn, diff --git a/src/noise_fns/modifiers/scale_bias.rs b/src/noise_fns/modifiers/scale_bias.rs index 4cae49ba..c0611b1e 100644 --- a/src/noise_fns/modifiers/scale_bias.rs +++ b/src/noise_fns/modifiers/scale_bias.rs @@ -6,7 +6,7 @@ use core::marker::PhantomData; /// /// The function retrieves the output value from the source function, multiplies /// it with the scaling factor, adds the bias to it, then outputs the value. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct ScaleBias { /// Outputs a value. pub source: Source, diff --git a/src/noise_fns/modifiers/terrace.rs b/src/noise_fns/modifiers/terrace.rs index bf7fd6e3..c282fa90 100644 --- a/src/noise_fns/modifiers/terrace.rs +++ b/src/noise_fns/modifiers/terrace.rs @@ -25,7 +25,7 @@ use core::marker::PhantomData; /// /// This noise function is often used to generate terrain features such as the /// stereotypical desert canyon. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Terrace where Source: NoiseFn, diff --git a/src/noise_fns/selectors/blend.rs b/src/noise_fns/selectors/blend.rs index 96416d8f..e09f90a1 100644 --- a/src/noise_fns/selectors/blend.rs +++ b/src/noise_fns/selectors/blend.rs @@ -6,7 +6,7 @@ use core::marker::PhantomData; /// /// This noise function uses linear interpolation to perform the blending /// operation. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Blend where Source1: NoiseFn, diff --git a/src/noise_fns/selectors/select.rs b/src/noise_fns/selectors/select.rs index 585efdc2..62f30305 100644 --- a/src/noise_fns/selectors/select.rs +++ b/src/noise_fns/selectors/select.rs @@ -6,7 +6,7 @@ use core::marker::PhantomData; /// Noise function that outputs the value selected from one of two source /// functions chosen by the output value from a control function. -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Select where Source1: NoiseFn,