[][src]Struct glsl_include::Context

pub struct Context<'a> { /* fields omitted */ }

A Context stores data required to expand source string inputs

Methods

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

pub fn new() -> Self[src]

Returns an empty Context

pub fn include<S>(&mut self, name: S, src: S) -> &mut Self where
    S: Into<String>, 
[src]

Associates an #include name with a GLSL source string

pub fn expand<S>(&self, src: S) -> Result<String, Error> where
    S: Into<String>, 
[src]

Recursively expands the #include directives within the GLSL source string and returns the expanded source string

Trait Implementations

impl<'a> Default for Context<'a>[src]

impl<'a> Debug for Context<'a>[src]

Auto Trait Implementations

impl<'a> Send for Context<'a>

impl<'a> Sync for Context<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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