Skip to main content

ExecSpecSeqSubrange

Trait ExecSpecSeqSubrange 

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

    // Required method
    exec fn exec_subrange(self, start_inclusive: usize, end_exclusive: usize) -> Self;
}
Expand description

Spec for executable version of Seq::subrange.

Required Associated Types§

Required Methods§

Source

exec fn exec_subrange(self, start_inclusive: usize, end_exclusive: usize) -> Self

requires
0 <= start_inclusive <= end_exclusive <= self.deep_view().len(),

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

Source§

exec fn exec_subrange(self, start_inclusive: usize, end_exclusive: usize) -> res : Self

ensures
res.deep_view()
    =~= self.deep_view().subrange(start_inclusive as int, end_exclusive as int),
Source§

type Elem = &'a T

Implementors§