pub trait SliceIndexSpecImpl<T>: SliceIndex<T>where
T: ?Sized,{
// Required methods
exec fn in_bounds(&self, slice: &T) -> bool;
exec fn index_postcondition(&self, slice: &T, r: &Self::Output) -> bool;
exec fn index_mut_postcondition(
&self,
old_slice: &T,
final_slice: &T,
immediate_output: &Self::Output,
final_output: &Self::Output,
) -> bool;
}Required Methods§
Sourceexec fn index_postcondition(&self, slice: &T, r: &Self::Output) -> bool
exec 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".
Implementations on Foreign Types§
Source§impl SliceIndexSpecImpl<str> for (Bound<usize>, Bound<usize>)
Available on verus_keep_ghost and non-verus_verify_core only.
impl SliceIndexSpecImpl<str> for (Bound<usize>, Bound<usize>)
Available on
verus_keep_ghost and non-verus_verify_core only.Source§impl SliceIndexSpecImpl<str> for Range<usize>
Available on verus_keep_ghost and non-verus_verify_core only.
impl SliceIndexSpecImpl<str> for Range<usize>
Available on
verus_keep_ghost and non-verus_verify_core only.Source§impl SliceIndexSpecImpl<str> for RangeFrom<usize>
Available on verus_keep_ghost and non-verus_verify_core only.
impl SliceIndexSpecImpl<str> for RangeFrom<usize>
Available on
verus_keep_ghost and non-verus_verify_core only.Source§impl SliceIndexSpecImpl<str> for RangeFull
Available on verus_keep_ghost and non-verus_verify_core only.
impl SliceIndexSpecImpl<str> for RangeFull
Available on
verus_keep_ghost and non-verus_verify_core only.Source§impl SliceIndexSpecImpl<str> for RangeInclusive<usize>
Available on verus_keep_ghost and non-verus_verify_core only.
impl SliceIndexSpecImpl<str> for RangeInclusive<usize>
Available on
verus_keep_ghost and non-verus_verify_core only.Source§impl SliceIndexSpecImpl<str> for RangeTo<usize>
Available on verus_keep_ghost and non-verus_verify_core only.
impl SliceIndexSpecImpl<str> for RangeTo<usize>
Available on
verus_keep_ghost and non-verus_verify_core only.Source§impl SliceIndexSpecImpl<str> for RangeToInclusive<usize>
Available on verus_keep_ghost and non-verus_verify_core only.
impl SliceIndexSpecImpl<str> for RangeToInclusive<usize>
Available on
verus_keep_ghost and non-verus_verify_core only.