Struct glslt::transform::Unit [−][src]
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]
fn global_scope(&self) -> &GlobalScope
[src]
fn global_scope_mut(&mut self) -> &mut GlobalScope
[src]
fn push_function_declaration(&mut self, def: FunctionDefinition)
[src]
fn parse_external_declaration(
&mut self,
extdecl: ExternalDeclaration
) -> Result<Option<FnHandle<'_>>>
[src]
&mut self,
extdecl: ExternalDeclaration
) -> Result<Option<FnHandle<'_>>>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
type Err = Infallible
pub fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,