Struct glslt::transform::Unit[][src]

pub struct Unit { /* fields omitted */ }

GLSLT template instantiation context

Implementations

impl Unit[src]

pub fn new() -> Self[src]

Create a new transform unit

pub fn with_context(global_scope: GlobalScope) -> Self[src]

Create a new transform unit using pre-defined templates

Parameters

  • global_scope: context to pull pre-defined templates from

pub fn into_translation_unit(self) -> Result<TranslationUnit>[src]

Transform this unit into a GLSL syntax tree

All the declarations given as input will be included in-order in the output, with the template instantiations interleaved when needed.

Trait Implementations

impl Clone for Unit[src]

impl Debug for Unit[src]

impl Default for Unit[src]

impl TransformUnit for Unit[src]

Auto Trait Implementations

impl RefUnwindSafe for Unit

impl Send for Unit

impl Sync for Unit

impl Unpin for Unit

impl UnwindSafe for Unit

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> IntoResult<T> for T

type Err = Infallible

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.