pub struct Definitions<'e> { /* private fields */ }
Expand description

(metadata, internals) Definitions helper type to generate definition files based on the contents of an Engine. Exported under the internals and metadata feature only.

Implementations

Write module ... headers in separate definitions, default false.

Headers are always present in content that is expected to be written to a file (i.e. write_to* and *_file methods).

Include standard packages when writing definition files.

Get the Engine.

Get the Scope.

Output all definition files returned from iter_files to a specified directory.

This function creates the directories and overrides any existing files if needed.

Output all definitions merged into a single file.

The parent directory must exist but the file will be created or overwritten as needed.

Return all definitions merged into a single file.

Iterate over generated definition files.

The returned iterator yields all definition files as (filename, content) pairs.

Return definitions for all builtin functions.

Return definitions for all builtin operators.

Return definitions for all globally available functions and constants.

Return definitions for all items inside the Scope, if any.

Return a (module name, definitions) pair for each registered static module.

Not available under no_module.

Generate a list of all functions in JSON format.

Functions from the following sources are included:

  1. Functions defined in an AST
  2. Functions registered into the global namespace
  3. Functions in static modules
  4. Functions in registered global packages
  5. Functions in standard packages (optional)

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.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.