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§
Sourcespec fn index_postcondition(&self, slice: &T, r: &Self::Output) -> bool
spec fn index_postcondition(&self, slice: &T, r: &Self::Output) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".