ExecSpecSetUnion

Trait ExecSpecSetUnion 

Source
pub trait ExecSpecSetUnion<'a, Out: Sized + DeepView>:
    Sized
    + DeepView
    + ToOwned<Out> {
    // Required method
    exec fn exec_union(self, s2: Self) -> Out;
}
Expand description

Spec for executable version of Set::union.

Required Methods§

Source

exec fn exec_union(self, s2: Self) -> Out

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<'a, K> ExecSpecSetUnion<'a, HashSet<K>> for &'a HashSet<K>
where K: DeepView + DeepViewClone + Hash + Eq,

Source§

exec fn exec_union(self, s2: Self) -> res : HashSet<K>

ensures
res.deep_view() =~= self.deep_view().union(s2.deep_view()),

Implementors§