pub struct Static<T, Token> { /* private fields */ }
Expand description

A potentially-uninitialized static with all things needed to initialize it.

Call init() to gain an access token.

Implementations

Initialize the static if not initialized yet and gain an access token.

This is little expensive to call (has to check if initialized), so if you already have an access token prefer to use it.

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.