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
    exec fn exec_remove(self, key: Self::Key) -> Out;
}
Expand description

Spec for executable version of Map::remove.

Required Associated Types§

Required Methods§

Source

exec 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§

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

ensures
res.deep_view() =~= self.deep_view().remove(key.deep_view()),
Source§

type Key = K

Implementors§