Trait Key

Source
pub trait Key:
    Clone
    + Copy
    + From<DefaultKey>
    + Into<DefaultKey> {
    // Required method
    fn index(self) -> usize;
}
Expand description

Key used to access values stored in some SharedVec.

A Key must support infallible conversion from and to DefaultKey.

Required Methods§

Source

fn index(self) -> usize

The index associated with the key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§