[][src]Struct noise_fn::Constant

pub struct Constant<Value: Copy> { /* fields omitted */ }

A noise function returning a constant value.

Implementations

impl<Value: Copy> Constant<Value>[src]

pub fn new(value: Value) -> Self[src]

Trait Implementations

impl<Value: Clone + Copy> Clone for Constant<Value>[src]

impl<Value: Copy> Copy for Constant<Value>[src]

impl<Value: Copy> Noise for Constant<Value>[src]

type Value = Value

type Unseeded = Self

impl<Arg, Value: Copy> NoiseDomain<Arg> for Constant<Value>[src]

Auto Trait Implementations

impl<Value> RefUnwindSafe for Constant<Value> where
    Value: RefUnwindSafe

impl<Value> Send for Constant<Value> where
    Value: Send

impl<Value> Sync for Constant<Value> where
    Value: Sync

impl<Value> Unpin for Constant<Value> where
    Value: Unpin

impl<Value> UnwindSafe for Constant<Value> where
    Value: 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<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>,