pub struct TemplateDefinition { /* private fields */ }
Expand description

Definition of a template function

Implementations

Get the AST of this template definition

Get the list of parameters of this template

Get the FnRef definition of this template

Generate a unique ID for the given template invocation

Parameters
  • args: list of template parameter values used in the invocation
  • config: scope in which this identifier should be generated

Instantiate this template definition into a GLSL function

Parameters
  • scope: local scope this template is being instantiated from
  • outer_instantiator: outer instantiation context
  • config: transformation config

Extract the template parameters from the full set of call parameters

Parameters
  • args: list of all function call arguments
Returns

List of expressions to be used in the template call. args will contain regular arguments to the GLSL function (which do not require a template instantiation).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.