pub struct Variables<'a> { /* private fields */ }
Expand description

Environment of immutable variables

Implementations

Creates a new, empty variable environment.

Creates a nested variable environment, that inherits from the given context environment.

Adds a new variable to this environment, returning an error if the variable already exists.

Returns the value of a variable, if it exists in this environment.

Remove a variable from this enviroment, if it exists.

Clears this enviroment.

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.