[][src]Struct glium::uniforms::UniformsStorage

pub struct UniformsStorage<'n, T, R> where
    T: AsUniformValue,
    R: Uniforms
{ /* fields omitted */ }

Stores uniforms.

Implementations

impl<'n, T> UniformsStorage<'n, T, EmptyUniforms> where
    T: AsUniformValue
[src]

pub fn new(name: &'n str, value: T) -> UniformsStorage<'n, T, EmptyUniforms>[src]

Builds a new storage with a value.

impl<'n, T, R> UniformsStorage<'n, T, R> where
    T: AsUniformValue,
    R: Uniforms
[src]

pub fn add<U>(
    self,
    name: &'n str,
    value: U
) -> UniformsStorage<'n, U, UniformsStorage<'n, T, R>> where
    U: AsUniformValue
[src]

Adds a value to the storage.

Trait Implementations

impl<'n, T, R> Uniforms for UniformsStorage<'n, T, R> where
    T: AsUniformValue,
    R: Uniforms
[src]

Auto Trait Implementations

impl<'n, T, R> RefUnwindSafe for UniformsStorage<'n, T, R> where
    R: RefUnwindSafe,
    T: RefUnwindSafe

impl<'n, T, R> Send for UniformsStorage<'n, T, R> where
    R: Send,
    T: Send

impl<'n, T, R> Sync for UniformsStorage<'n, T, R> where
    R: Sync,
    T: Sync

impl<'n, T, R> Unpin for UniformsStorage<'n, T, R> where
    R: Unpin,
    T: Unpin

impl<'n, T, R> UnwindSafe for UniformsStorage<'n, T, R> where
    R: UnwindSafe,
    T: 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<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.