Skip to main content

UncheckedSliceOps

Trait UncheckedSliceOps 

Source
pub trait UncheckedSliceOps<T: Copy> {
    // Required method
    unsafe fn copy_from_slice_unchecked(&mut self, src: &[T]);
}

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl<T: Copy> UncheckedSliceOps<T> for [T]

Source§

unsafe fn copy_from_slice_unchecked(&mut self, src: &[T])

Implementors§