ExecSpecSeqIndexOf

Trait ExecSpecSeqIndexOf 

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

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

Spec for executable version of Seq::index_of.

Required Associated Types§

Required Methods§

Source

exec fn exec_index_of(self, needle: Self::Elem) -> usize

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

Source§

exec fn exec_index_of(self, needle: Self::Elem) -> res : usize

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

type Elem = T

Implementors§