ShallowCopy

Trait ShallowCopy 

Source
pub trait ShallowCopy {
    // Required method
    unsafe fn shallow(&self) -> Self;
}

Required Methods§

Source

unsafe fn shallow(&self) -> 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.

Implementors§

Source§

impl<S, T> ShallowCopy for StackArray<S, T>
where S: Shape, <S as Shape>::ARR<T>: Copy,

Source§

impl<T> ShallowCopy for CPUPtr<T>

Source§

impl<T> ShallowCopy for CLPtr<T>