Trait UnsizedCopy

Source
pub unsafe trait UnsizedCopy { }
Expand description

Unsafe marker trait for types that can be copied, including unsized types such as slices.

§Safety

Implementing UnsizedCopy indicates the type’s memory representation can be duplicated without violating soundness or causing double frees.

Implementations on Foreign Types§

Source§

impl UnsizedCopy for str

Source§

impl UnsizedCopy for CStr

Source§

impl<T: Copy> UnsizedCopy for [T]

Implementors§

Source§

impl<T: Copy> UnsizedCopy for T