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

A workspace that contains type-erased objects.

The workspace is intended to hold intermediate data used as workspace in computations. It is optimized particularly for the case where the same type is accessed many times in a row.

Usually you do not need to use this type directly. Instead, use define_thread_local_workspace in conjunction with with_thread_local_workspace as described in the crate-level documentation.

Implementations

Attempts to insert the given object into the workspace.

If the insertion was successful, a reference to the object is returned. Otherwise, None is returned.

Trait Implementations

Formats the value using the given formatter. Read more
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

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.