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

The result of freezing a Module, making it and its contained values immutable.

The values of this FrozenModule are stored on a frozen heap, a reference to which can be obtained using frozen_heap. Be careful not to use these values after the FrozenModule has been released unless you obtain a reference to the frozen heap.

Implementations

Print a lot of module internals for debugging.

Get the value of the exported variable name. Returns None if the variable isn’t defined in the module or it is private.

Iterate through all the names defined in this module.

Obtain the FrozenHeapRef which owns the storage of all values defined in this module.

Print out some approximation of the module definitions.

Fetch the documentation for the module.

The documentation for the module, and all of its top level values

Returns (, { : <that symbol’s documentation> })

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

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

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.