IndexSpecImpl

Trait IndexSpecImpl 

Source
pub trait IndexSpecImpl<Idx>: Index<Idx>
where Idx: ?Sized,
{ // Required method exec fn index_req(&self, index: &Idx) -> bool; }

Required Methods§

Source

exec fn index_req(&self, index: &Idx) -> bool

Implementations on Foreign Types§

Source§

impl<T, A: Allocator> IndexSpecImpl<usize> for VecDeque<T, A>

Source§

open spec fn index_req(&self, index: &usize) -> bool

{ index < self.len() }
Source§

impl<T, I, const N: usize> IndexSpecImpl<I> for [T; N]
where [T]: Index<I>,

Source§

open spec fn index_req(&self, index: &I) -> bool

{ <[T] as IndexSpec<I>>::index_req(self, index) }
Source§

impl<T, I: SliceIndex<[T]>> IndexSpecImpl<I> for [T]

Source§

open spec fn index_req(&self, index: &I) -> bool

{ index.index_req(self) }
Source§

impl<T: Sized, I: SliceIndex<[T]>, A: Allocator> IndexSpecImpl<I> for Vec<T, A>

Source§

open spec fn index_req(&self, index: &I) -> bool

{ forall |s: &[T]| #[trigger] s@ == self@ ==> index.index_req(s) }

Implementors§