Struct slots::slots::Key

source · []
pub struct Key<IT, const N: usize> { /* private fields */ }
Expand description

The key used to access stored elements.

Important: It should only be used to access the same collection that returned it. When the runtime_checks feature is disabled, extra care must be taken to ensure this constraint.

Implementations

Trait Implementations

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