[][src]Trait index_set::ToIndex

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

Implemented for types that can be stored in an IndexSet.

Index should be a primitive integer type.

Associated Types

Loading content...

Required methods

fn to_index(&self) -> Self::Index

Returns the index for the value.

Loading content...

Implementations on Foreign Types

impl ToIndex for char
[src]

type Index = u32

impl ToIndex for NonZeroU8
[src]

type Index = u8

impl ToIndex for Option<NonZeroU8>
[src]

type Index = u8

impl ToIndex for NonZeroU16
[src]

type Index = u16

impl ToIndex for Option<NonZeroU16>
[src]

type Index = u16

impl ToIndex for NonZeroU32
[src]

type Index = u32

impl ToIndex for Option<NonZeroU32>
[src]

type Index = u32

impl ToIndex for NonZeroU64
[src]

type Index = u64

impl ToIndex for Option<NonZeroU64>
[src]

type Index = u64

impl ToIndex for NonZeroU128
[src]

type Index = u128

impl ToIndex for Option<NonZeroU128>
[src]

type Index = u128

impl ToIndex for NonZeroUsize
[src]

type Index = usize

impl ToIndex for Option<NonZeroUsize>
[src]

type Index = usize

impl ToIndex for Ipv4Addr
[src]

type Index = u32

impl ToIndex for Ipv6Addr
[src]

type Index = u128

Loading content...

Implementors

impl<T> ToIndex for T where
    T: IndexType
[src]

type Index = T

Loading content...