Skip to main content

SliceIndexSpec

Trait SliceIndexSpec 

Source
pub trait SliceIndexSpec<T>: SliceIndex<T>
where T: ?Sized,
{ // Required methods spec fn in_bounds(&self, slice: &T) -> bool; spec fn index_postcondition(&self, slice: &T, r: &Self::Output) -> bool; spec fn index_mut_postcondition( &self, old_slice: &T, final_slice: &T, immediate_output: &Self::Output, final_output: &Self::Output, ) -> bool; }

Required Methods§

Source

spec fn in_bounds(&self, slice: &T) -> bool

Source

spec fn index_postcondition(&self, slice: &T, r: &Self::Output) -> bool

Source

spec fn index_mut_postcondition( &self, old_slice: &T, final_slice: &T, immediate_output: &Self::Output, final_output: &Self::Output, ) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, VERUS_SPEC__A: SliceIndex<T> + ?Sized> SliceIndexSpec<T> for VERUS_SPEC__A
where T: ?Sized,