Trait contiguous_map::ToIndex[][src]

pub trait ToIndex {
    type Index: Key;
    fn to_index(&self) -> Self::Index;
}
Expand description

Trait to convert a type to an index that implements the Key trait.

This can be implemented in combination with TryFromIndex to enable a blanket implementation of the Key trait.

Associated Types

The key type used as an index for this type.

Required methods

Converts self to an index.

Implementations on Foreign Types

Implementors