ExecSpecSeqContains

Trait ExecSpecSeqContains 

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

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

Spec for executable version of Seq::contains.

Required Associated Types§

Required Methods§

Source

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

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, T: DeepView + PartialEq> ExecSpecSeqContains<'a> for &'a [T]
where &'a T: ExecSpecEq<'a, Other = &'a T>,

Source§

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

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

type Elem = T

Implementors§