Struct luminance::shader::uniform::UniformUpdate [] [src]

pub struct UniformUpdate<'a, T> {
    // some fields omitted
}

Wrapper over Uniform, discarding everything but update.

Among its features, this type enables you to contramap a function to build more interesting UniformUpdate.

Use From or Into to build a UniformUpdate.

Methods

impl<'a, T> UniformUpdate<'a, T> where T: 'a
[src]

fn update(&self, x: T)

Update the underlying Uniform.

fn contramap<F, Q>(self, f: F) -> UniformUpdate<'a, Q> where F: 'a + Fn(Q) -> T

Apply a contravariant functor.

Trait Implementations

impl<'a, C, T> From<Uniform<C, T>> for UniformUpdate<'a, T> where C: 'a + HasUniform, T: 'a + Uniformable<C>
[src]

fn from(u: Uniform<C, T>) -> Self

Performs the conversion.