[][src]Struct noise_fn::SumNoise

pub struct SumNoise<Inner, const N: usize> { /* fields omitted */ }

A noise function formed by summing an array of other noise functions.

Implementations

impl<Inner, const N: usize> SumNoise<Inner, N>[src]

pub fn new(inners: [Inner; N]) -> SumNoise<Inner, N>[src]

Trait Implementations

impl<Inner: Clone, const N: usize> Clone for SumNoise<Inner, N>[src]

impl<Inner: Copy, const N: usize> Copy for SumNoise<Inner, N>[src]

impl<Inner: Noise, const N: usize> Noise for SumNoise<Inner, N> where
    Inner::Value: Zero + AddAssign
[src]

type Value = Inner::Value

type Unseeded = SumNoise<Inner::Unseeded, N>

impl<Arg: Copy, Inner: NoiseDomain<Arg>, const N: usize> NoiseDomain<Arg> for SumNoise<Inner, N> where
    Inner::Value: Zero + AddAssign
[src]

impl<Inner: Seedable, const N: usize> Seedable for SumNoise<Inner, N> where
    Inner::Seed: SplitSeed
[src]

type Seed = Inner::Seed

type Seeded = SumNoise<Inner::Seeded, N>

impl<Inner: Seeded, const N: usize> Seeded for SumNoise<Inner, N> where
    <Inner::Config as Seedable>::Seed: SplitSeed
[src]

type Config = SumNoise<Inner::Config, N>

Auto Trait Implementations

impl<Inner, const N: usize> RefUnwindSafe for SumNoise<Inner, N> where
    Inner: RefUnwindSafe

impl<Inner, const N: usize> Send for SumNoise<Inner, N> where
    Inner: Send

impl<Inner, const N: usize> Sync for SumNoise<Inner, N> where
    Inner: Sync

impl<Inner, const N: usize> Unpin for SumNoise<Inner, N> where
    Inner: Unpin

impl<Inner, const N: usize> UnwindSafe for SumNoise<Inner, N> where
    Inner: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<TNoise> Noise for TNoise where
    TNoise: SeedOnlyNoise
[src]

type Value = <TNoise as SeedOnlyNoise>::Value

type Unseeded = EmptyConfig<TNoise>

impl<Noise> Seeded for Noise where
    Noise: SeedOnlyNoise
[src]

type Config = EmptyConfig<Noise>

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,