ExecSpecSeqSkip

Trait ExecSpecSeqSkip 

Source
pub trait ExecSpecSeqSkip<'a>: Sized + DeepView<V = Seq<<Self::Elem as DeepView>::V>> {
    type Elem: DeepView;

    // Required method
    exec fn exec_skip(self, n: usize) -> Self;
}
Expand description

Spec for executable version of Seq::skip.

Required Associated Types§

Required Methods§

Source

exec fn exec_skip(self, n: usize) -> Self

requires
0 <= n <= self.deep_view().len(),

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> ExecSpecSeqSkip<'a> for &'a [T]

Source§

exec fn exec_skip(self, n: usize) -> res : Self

ensures
res.deep_view() =~= self.deep_view().skip(n as int),
Source§

type Elem = &'a T

Implementors§