pub trait Key: Clone + Copy + From<DefaultKey> + Into<DefaultKey> {
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
.
pub trait Key: Clone + Copy + From<DefaultKey> + Into<DefaultKey> {
fn index(self) -> usize;
}
Key used to access values stored in some SharedVec
.
A Key
must support infallible conversion from and to DefaultKey
.