Skip to main content

SliceIndexSpec

Trait SliceIndexSpec 

Source
pub trait SliceIndexSpec<T>: SliceIndex<T>
where T: ?Sized,
{ // Required method spec fn in_bounds(&self, slice: &T) -> bool; }

Required Methods§

Source

spec fn in_bounds(&self, slice: &T) -> 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,