[][src]Struct tray_rust::sampler::Sample

pub struct Sample {
    pub two_d: (f32, f32),
    pub one_d: f32,
}

Provides a simple way to pass around a 3 component sample consisting of one 2D and one 1D sample

Fields

two_d: (f32, f32)

The 2D sample

one_d: f32

The 1D sample

Methods

impl Sample[src]

pub fn new(two_d: &(f32, f32), one_d: f32) -> Sample[src]

Create a new sample taking the 2D sample values from the slice

Trait Implementations

impl Debug for Sample[src]

Auto Trait Implementations

impl Send for Sample

impl Sync for Sample

impl Unpin for Sample

impl UnwindSafe for Sample

impl RefUnwindSafe for Sample

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SetParameter for T[src]