[][src]Trait index_set::FromIndex

pub trait FromIndex where
    Self: ToIndex + Sized
{ fn from_index(index: Self::Index) -> Option<Self>; }

Implemented for types that can be fully constructed from their indices.

Calling from_index on an index that was created by calling ToIndex::to_index on a value must return the original value.

Required methods

fn from_index(index: Self::Index) -> Option<Self>

Returns the value that has the given index, or None if the index is invalid.

Loading content...

Implementations on Foreign Types

impl FromIndex for char
[src]

impl FromIndex for NonZeroU8
[src]

impl FromIndex for Option<NonZeroU8>
[src]

impl FromIndex for NonZeroU16
[src]

impl FromIndex for Option<NonZeroU16>
[src]

impl FromIndex for NonZeroU32
[src]

impl FromIndex for Option<NonZeroU32>
[src]

impl FromIndex for NonZeroU64
[src]

impl FromIndex for Option<NonZeroU64>
[src]

impl FromIndex for NonZeroU128
[src]

impl FromIndex for Option<NonZeroU128>
[src]

impl FromIndex for NonZeroUsize
[src]

impl FromIndex for Option<NonZeroUsize>
[src]

impl FromIndex for Ipv4Addr
[src]

impl FromIndex for Ipv6Addr
[src]

Loading content...

Implementors

impl<T> FromIndex for T where
    T: ToIndex<Index = T> + IndexType
[src]

Loading content...