Skip to main content

ExecSpecSetContains

Trait ExecSpecSetContains 

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

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

Spec for executable version of [Set::contains].

Required Associated Types§

Required Methods§

Source

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§

type Elem = K

Source§

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

Implementors§