pub struct BorrowedStorage<'a, DataStore> { /* private fields */ }
Expand description

A single storage which stores memory in borrowed space.

The DataStore type parameter determines the layout of the inline storage. (It would be nice to use const LAYOUT: Layout instead, but the needed features are currently a little too incomplete to be usable here yet.)

Implementations

Trait Implementations

The handle which is used to access the stored memory. Read more

Allocate memory handle in this storage. Read more

Deallocate an object handle in this storage. Read more

Resolve a memory handle in this storage to a reference. Read more

Resolve a memory handle in this storage to a mutable reference. Read more

Grow a memory handle to a larger size. Read more

Shrink a memory handle to a smaller size. 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.