Trait contiguous_map::TryFromIndex[][src]

pub trait TryFromIndex: ToIndex where
    Self: Sized
{ fn try_from_index(index: Self::Index) -> Option<Self>; }
Expand description

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

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

Required methods

Attempts to convert from an index to this type.

Implementations on Foreign Types

Implementors