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

A wrapper for the VSScript environment.

Implementations

Creates an empty script environment.

Useful if it is necessary to set some variable in the script environment before evaluating any scripts.

Creates a script environment and evaluates a script contained in a string.

Creates a script environment and evaluates a script contained in a file.

Evaluates a script contained in a string.

Evaluates a script contained in a file.

Clears the script environment.

Retrieves a node from the script environment. A node in the script must have been marked for output with the requested index. The second node, if any, contains the alpha clip.

Cancels a node set for output. The node will no longer be available to get_output().

Retrieves the VapourSynth core that was created in the script environment. If a VapourSynth core has not been created yet, it will be created now, with the default options.

Retrieves a variable from the script environment.

Sets variables in the script environment.

Deletes a variable from the script environment.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. 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 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.