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.