[][src]Trait plain_enum::TInternalEnumMapType

pub trait TInternalEnumMapType<V, W>: TPlainEnum {
    type InternalEnumMapType: TArrayFromFn<V>;
    type MappedType: TArrayFromFn<W>;
    fn map_into(
        a: Self::InternalEnumMapType,
        f: impl FnMut(V) -> W
    ) -> Self::MappedType; }

Trait used to associated enum with EnumMap. Needed because of https://github.com/rust-lang/rust/issues/46969. TODO Rust: Once this is solved, use array directly within EnumMap.

Associated Types

type InternalEnumMapType: TArrayFromFn<V>

type MappedType: TArrayFromFn<W>

Loading content...

Required methods

fn map_into(
    a: Self::InternalEnumMapType,
    f: impl FnMut(V) -> W
) -> Self::MappedType

Loading content...

Implementations on Foreign Types

impl<V, W> TInternalEnumMapType<V, W> for bool[src]

type InternalEnumMapType = [V; 2]

type MappedType = [W; 2]

impl<V, W> TInternalEnumMapType<V, W> for ()[src]

type InternalEnumMapType = [V; 1]

type MappedType = [W; 1]

Loading content...

Implementors

Loading content...