pub trait ExSliceIndex<T>where
T: ?Sized,{
type ExternalTraitSpecificationFor: SliceIndex<T>;
type Output: ?Sized;
// Required methods
spec fn in_bounds(&self, slice: &T) -> bool;
exec fn index(self, slice: &T) -> &Self::Output;
exec fn index_mut(self, slice: &mut T) -> &mut Self::Output;
exec fn get(self, slice: &T) -> r : Option<&Self::Output>;
exec fn get_mut(self, slice: &mut T) -> r : Option<&mut Self::Output>;
}Required Associated Types§
type ExternalTraitSpecificationFor: SliceIndex<T>
type Output: ?Sized
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".