Skip to main content

StaticMap

Trait StaticMap 

Source
pub trait StaticMap<T> {
    type Mapped;

    // Required method
    fn static_map(x: T) -> Self::Mapped;
}

Required Associated Types§

Required Methods§

Source

fn static_map(x: T) -> Self::Mapped

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<A, B, M: StaticMap<B>> StaticMap<(A, B)> for StaticMap1<M>

Source§

type Mapped = (A, <M as StaticMap<B>>::Mapped)

Source§

impl<A, B> StaticMap<(A, B)> for StaticExtra0

Source§

impl<A, B> StaticMap<(A, B)> for StaticExtra1

Source§

impl<A, B> StaticMap<(A, B)> for StaticSwap

Source§

impl<A: Clone, B, T: IntoIterator<Item = B>> StaticMap<(A, T)> for StaticOneCrossN

Source§

impl<A: IntoIterator<Item = B>, B: IntoIterator<Item = C>, C> StaticMap<A> for StaticFlatten

Source§

impl<M: StaticMap<T>, T> StaticMap<T> for SmExtra<M>

Source§

type Mapped = <M as StaticMap<T>>::Mapped

Source§

impl<S: AsRef<str>> StaticMap<S> for StaticAsciiSplit

Source§

impl<T, A: StaticMap<T>, B: StaticMap<A::Mapped>> StaticMap<T> for StaticCompose<A, B>

Source§

type Mapped = <B as StaticMap<<A as StaticMap<T>>::Mapped>>::Mapped

Source§

impl<T, I: IntoIterator<Item = T>, C: FromIterator<T>> StaticMap<I> for StaticCollect<C>

Source§

impl<T, I: IntoIterator<Item = T>, M: StaticMap<T>> StaticMap<I> for StaticFMap<M>

Source§

type Mapped = Vec<<M as StaticMap<T>>::Mapped>

Source§

impl<T: Clone> StaticMap<T> for StaticToTuple2

Source§

impl<T: FullHash> StaticMap<T> for StaticToHash

Source§

impl<T: Ord, I: IntoIterator<Item = T>> StaticMap<I> for StaticUniqueSorted

Source§

impl<T> StaticMap<T> for StaticReturn

Source§

impl<T> StaticMap<T> for StaticToTuple0