crispy::uniforms

Trait ExtendUniforms

Source
pub trait ExtendUniforms<'n> {
    // Required method
    fn add<U: AsUniformValue>(
        self,
        name: &'n str,
        value: U,
    ) -> UniformsStorage<'n, U, impl Uniforms>;
}

Required Methods§

Source

fn add<U: AsUniformValue>( self, name: &'n str, value: U, ) -> UniformsStorage<'n, U, impl Uniforms>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'n> ExtendUniforms<'n> for EmptyUniforms

Source§

fn add<U: AsUniformValue>( self, name: &'n str, value: U, ) -> UniformsStorage<'n, U, impl Uniforms>

Source§

impl<'n, T: AsUniformValue, U: Uniforms> ExtendUniforms<'n> for UniformsStorage<'n, T, U>

Source§

fn add<V: AsUniformValue>( self, name: &'n str, value: V, ) -> UniformsStorage<'n, V, impl Uniforms>

Implementors§