Skip to main content

ExecSpecSetRemove

Trait ExecSpecSetRemove 

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

    // Required method
    exec fn exec_remove(self, a: Self::Elem) -> Out;
}
Expand description

Spec for executable version of Set::remove.

Required Associated Types§

Required Methods§

Source

exec fn exec_remove(self, a: Self::Elem) -> 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> ExecSpecSetRemove<'a, HashSet<K>> for &'a HashSet<K>
where K: DeepView + DeepViewClone + Hash + Eq,

Source§

exec fn exec_remove(self, a: Self::Elem) -> res : HashSet<K>

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

type Elem = K

Implementors§