Skip to main content

ExecSpecMapRemove

Trait ExecSpecMapRemove 

Source
pub trait ExecSpecMapRemove<'a, Out: Sized + DeepView>:
    Sized
    + DeepView
    + ToOwned<Out> {
    type Key: DeepView + DeepViewClone;

    // Required method
    fn exec_remove(self, key: Self::Key) -> Out;
}
Expand description

Spec for executable version of [Map::remove].

Required Associated Types§

Required Methods§

Source

fn exec_remove(self, key: Self::Key) -> Out

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, K, V> ExecSpecMapRemove<'a, HashMap<K, V>> for &'a HashMap<K, V>

Source§

type Key = K

Source§

fn exec_remove(self, key: Self::Key) -> HashMap<K, V>

Implementors§