[−][src]Trait plain_enum::TInternalEnumMapType
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>
Required methods
fn map_into(
a: Self::InternalEnumMapType,
f: impl FnMut(V) -> W
) -> Self::MappedType
a: Self::InternalEnumMapType,
f: impl FnMut(V) -> W
) -> Self::MappedType
Implementations on Foreign Types
impl<V, W> TInternalEnumMapType<V, W> for bool
[src]
type InternalEnumMapType = [V; 2]
type MappedType = [W; 2]
fn map_into(
a: Self::InternalEnumMapType,
f: impl FnMut(V) -> W
) -> Self::MappedType
[src]
a: Self::InternalEnumMapType,
f: impl FnMut(V) -> W
) -> Self::MappedType
impl<V, W> TInternalEnumMapType<V, W> for ()
[src]
type InternalEnumMapType = [V; 1]
type MappedType = [W; 1]
fn map_into(
a: Self::InternalEnumMapType,
f: impl FnMut(V) -> W
) -> Self::MappedType
[src]
a: Self::InternalEnumMapType,
f: impl FnMut(V) -> W
) -> Self::MappedType