pub trait SliceAble {
// Required methods
unsafe fn slice_unchecked(&self, range: Range<usize>) -> Self;
fn slice(&self, range: Range<usize>) -> Self;
}
Required Methods§
Sourceunsafe fn slice_unchecked(&self, range: Range<usize>) -> Self
unsafe fn slice_unchecked(&self, range: Range<usize>) -> Self
§Safety
no bound checks.
fn slice(&self, range: Range<usize>) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.