#[repr(transparent)]
pub struct Lease<'scope, S: Static>(_);
Expand description

A lease on a static memory location for a statically-checked lifetime.

Implementations

Creates a new scope from a unique borrow and an initial value.

Creates a shared borrow of this scoped static.

Creates a mutable borrow of this scoped static.

Trait Implementations

Executes the destructor for this 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 for metadata in pointers and references to Self.
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.