pub trait UncheckedSliceOps<T: Copy> {
// Required method
unsafe fn copy_from_slice_unchecked(&mut self, src: &[T]);
}Required Methods§
Sourceunsafe fn copy_from_slice_unchecked(&mut self, src: &[T])
unsafe fn copy_from_slice_unchecked(&mut self, src: &[T])
§Safety
src must not be longer than self; the copy is unchecked in release
builds.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".