Skip to main content

ExecSpecSetContains

Trait ExecSpecSetContains 

Source
pub trait ExecSpecSetContains<'a>: Sized + DeepView {
    type Elem: DeepView;

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

Spec for executable version of Set::contains.

Required Associated Types§

Required Methods§

Source

exec fn exec_contains(self, a: Self::Elem) -> bool

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: DeepView + Hash + Eq> ExecSpecSetContains<'a> for &'a HashSet<K>

Source§

exec fn exec_contains(self, a: Self::Elem) -> res : bool

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

type Elem = K

Implementors§