Struct tree_sitter_graph::Variables[][src]

pub struct Variables { /* fields omitted */ }
Expand description

An environment of named variables

Implementations

Creates a new, empty environment of variables.

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

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

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

Clears this list of variables.

Trait Implementations

Returns the “default value” for a 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

Performs the conversion.

Performs the conversion.

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.