MapPersist

Trait MapPersist 

Source
pub trait MapPersist<T, U> {
    type C<A>;

    // Required method
    fn map<F: FnPersist<T, U>>(f: F) -> impl FnPersist<Self::C<T>, Self::C<U>>;
}

Required Associated Types§

Source

type C<A>

Required Methods§

Source

fn map<F: FnPersist<T, U>>(f: F) -> impl FnPersist<Self::C<T>, Self::C<U>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<K: Ord + PartialEq + Clone, V: PartialEq, U: Ord + Clone> MapPersist<V, U> for OrdMap<K, V>

Source§

type C<A> = OrdMap<K, A>

Source§

fn map<F: FnPersist<V, U>>(f: F) -> OrdMapMap<K, V, U, F>

Source§

impl<T: Ord + Clone, U: Ord + Clone> MapPersist<T, U> for OrdSet<T>

Source§

type C<A> = OrdSet<A>

Source§

fn map<F: FnPersist<T, U>>(f: F) -> OrdSetMap<T, U, F>

Source§

impl<V: Clone, U: Clone> MapPersist<V, U> for Vector<V>

Source§

type C<A> = Vector<A>

Source§

fn map<F: FnPersist<V, U>>(f: F) -> VectorMap<V, U, F>

Implementors§