Struct glin::program::Builder[][src]

pub struct Builder<'a>(_);

Implementations

impl<'a> Builder<'a>[src]

pub fn from_src(&self, src: &[(GLenum, &str)]) -> Result<Program>[src]

Create a shader for a slice of shader type and source tuples

pub fn from_src_bindings<S, B>(
    &self,
    src: &[(GLenum, S)],
    bindings: &B
) -> Result<Program> where
    S: AsRef<str>,
    B: Bindings
[src]

Create a shader for a slice of shader type and source tuples + default attribute bindings

pub fn from_settings<S>(&self, settings: Settings<S>) -> Result<Program> where
    S: AsRef<str> + From<&'a str> + Eq + Hash + Debug
[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Builder<'a>

impl<'a> !Send for Builder<'a>

impl<'a> !Sync for Builder<'a>

impl<'a> Unpin for Builder<'a>

impl<'a> !UnwindSafe for Builder<'a>

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[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> Pointable for T[src]

type Init = T

The type for initializers.

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.