Trait hash_arr_map::FromIndex[][src]

pub trait FromIndex: Sized + IntoIndex {
    fn try_from_index(idx: NonZeroUsize) -> Option<Self>;

    unsafe fn from_index(idx: NonZeroUsize) -> Self { ... }
}
Expand description

Conversion from an index.

This trait implements conversion from an index into self. The indices converted are guaranteed to have been returned from IntoIndex::into_index at some point in the past.

Required methods

Fallibly convert it.

Provided methods

Convert it.

Safety

The index must have been returned from IntoIndex::into_index at some point in the past.

Implementations on Foreign Types

Implementors