[−][src]Trait index_set::FromIndex
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.
Implementations on Foreign Types
impl FromIndex for char
[src]
impl FromIndex for char
fn from_index(index: u32) -> Option<char> | [src] |
impl FromIndex for NonZeroU8
[src]
impl FromIndex for NonZeroU8
fn from_index(index: u8) -> Option<NonZeroU8> | [src] |
impl FromIndex for Option<NonZeroU8>
[src]
impl FromIndex for Option<NonZeroU8>
impl FromIndex for NonZeroU16
[src]
impl FromIndex for NonZeroU16
fn from_index(index: u16) -> Option<NonZeroU16> | [src] |
impl FromIndex for Option<NonZeroU16>
[src]
impl FromIndex for Option<NonZeroU16>
fn from_index(index: u16) -> Option<Option<NonZeroU16>> | [src] |
impl FromIndex for NonZeroU32
[src]
impl FromIndex for NonZeroU32
fn from_index(index: u32) -> Option<NonZeroU32> | [src] |
impl FromIndex for Option<NonZeroU32>
[src]
impl FromIndex for Option<NonZeroU32>
fn from_index(index: u32) -> Option<Option<NonZeroU32>> | [src] |
impl FromIndex for NonZeroU64
[src]
impl FromIndex for NonZeroU64
fn from_index(index: u64) -> Option<NonZeroU64> | [src] |
impl FromIndex for Option<NonZeroU64>
[src]
impl FromIndex for Option<NonZeroU64>
fn from_index(index: u64) -> Option<Option<NonZeroU64>> | [src] |
impl FromIndex for NonZeroU128
[src]
impl FromIndex for NonZeroU128
fn from_index(index: u128) -> Option<NonZeroU128> | [src] |
impl FromIndex for Option<NonZeroU128>
[src]
impl FromIndex for Option<NonZeroU128>
fn from_index(index: u128) -> Option<Option<NonZeroU128>> | [src] |
impl FromIndex for NonZeroUsize
[src]
impl FromIndex for NonZeroUsize
fn from_index(index: usize) -> Option<NonZeroUsize> | [src] |
impl FromIndex for Option<NonZeroUsize>
[src]
impl FromIndex for Option<NonZeroUsize>
fn from_index(index: usize) -> Option<Option<NonZeroUsize>> | [src] |
impl FromIndex for Ipv4Addr
[src]
impl FromIndex for Ipv4Addr
fn from_index(index: u32) -> Option<Ipv4Addr> | [src] |
impl FromIndex for Ipv6Addr
[src]
impl FromIndex for Ipv6Addr
fn from_index(index: u128) -> Option<Ipv6Addr> | [src] |
Implementors
impl<T> FromIndex for T where
T: ToIndex<Index = T> + IndexType,
[src]
impl<T> FromIndex for T where
T: ToIndex<Index = T> + IndexType,
fn from_index(index: T) -> Option<T> | [src] |