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

Minimizing GLSLT template instantiation context

Implementations

Create a new minifying transform unit

Create a new minifying transform unit using pre-defined templates

Parameters
  • global_scope: context to pull pre-defined templates from

Create a new transform unit with the given configuration

Parameters
  • config: transform configuration

Obtain an iterator to the functions and templates defined in the current unit

Obtain an iterator to all the top-level declarations in the current unit

Transform this unit into a GLSL syntax tree

Only the functions included in wanted and their transitive dependencies will be included in the output.

Parameters
  • wanted: list of function names to include in the result

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

Returns the “default value” for a type. Read more

Obtain a reference to the template definition context

Obtain a mutable reference to the template definition context

Add a function declaration to the transform unit Read more

Parse a GLSLT declaration and add it to the transform unit 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.