ExecSpecSeqIsSuffixOf

Trait ExecSpecSeqIsSuffixOf 

Source
pub trait ExecSpecSeqIsSuffixOf<'a>: DeepView + Sized {
    type Other: DeepView<V = Self::V>;

    // Required method
    exec fn exec_is_suffix_of(self, other: Self::Other) -> res : bool;
}
Expand description

Spec for executable version of Seq::is_suffix_of.

Required Associated Types§

Source

type Other: DeepView<V = Self::V>

Required Methods§

Source

exec fn exec_is_suffix_of(self, other: Self::Other) -> res : 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> ExecSpecSeqIsSuffixOf<'a> for &'a [T]
where &'a T: ExecSpecEq<'a, Other = &'a T>, &'a [T]: DeepView<V = Seq<<&'a T as DeepView>::V>>,

Source§

exec fn exec_is_suffix_of(self, other: Self::Other) -> res : bool

ensures
res == self.deep_view().is_suffix_of(other.deep_view()),
Source§

type Other = &'a [T]

Implementors§