Skip to main content

ExecSpecSeqDropFirst

Trait ExecSpecSeqDropFirst 

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

    // Required method
    exec fn exec_drop_first(self) -> Self;
}
Expand description

Spec for executable version of Seq::drop_first.

Required Associated Types§

Required Methods§

Source

exec fn exec_drop_first(self) -> Self

requires
self.deep_view().len() >= 1,

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, T: DeepView> ExecSpecSeqDropFirst<'a> for &'a [T]

Source§

exec fn exec_drop_first(self) -> res : Self

ensures
res.deep_view() =~= self.deep_view().drop_first(),
Source§

type Elem = &'a T

Implementors§