pub struct Globals(_);
Expand description

The global values available during execution.

Implementations

Create an empty Globals, with no functions in scope.

Create a Globals following the Starlark standard.

Create a Globals combining those functions in the Starlark standard plus all those defined in LibraryExtension.

Create a Globals combining those functions in the Starlark standard plus all those given in the LibraryExtension arguments.

Get all the names defined in this environment.

Print information about the values in this object.

Get the documentation for both the object itself, and its members. Returned as an Object

Get the documentation for each member. Useful when loading a number of objects into a single Globals instance, but where the documentation for each member will be split up later.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Get an ARef pointing at this type.

Try and get an ARef pointing at this type. Returns an Err if the type Self is a RefCell which is already mutably borrowed. Read more

Return the underlying RefCell if Self is one, otherwise None.

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.

Convert between two equal types.

Convert between references to two equal types.

Convert between mutable references to two equal types.

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

Converts the given value to a String. 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.