Trait tract_core::internal::tract_ndarray::RawDataClone[][src]

pub unsafe trait RawDataClone: RawData { }
Expand description

Array representation trait.

An array representation that can be cloned.

Internal trait, see RawData.

Implementors

impl<'a, A> RawDataClone for CowRepr<'a, A> where
    A: Clone
[src]

pub unsafe fn clone_with_ptr(
    &self,
    ptr: NonNull<<CowRepr<'a, A> as RawData>::Elem>
) -> (CowRepr<'a, A>, NonNull<<CowRepr<'a, A> as RawData>::Elem>)
[src]

impl<'a, A> RawDataClone for ViewRepr<&'a A>[src]

pub unsafe fn clone_with_ptr(
    &self,
    ptr: NonNull<<ViewRepr<&'a A> as RawData>::Elem>
) -> (ViewRepr<&'a A>, NonNull<<ViewRepr<&'a A> as RawData>::Elem>)
[src]

impl<A> RawDataClone for OwnedArcRepr<A>[src]

pub unsafe fn clone_with_ptr(
    &self,
    ptr: NonNull<<OwnedArcRepr<A> as RawData>::Elem>
) -> (OwnedArcRepr<A>, NonNull<<OwnedArcRepr<A> as RawData>::Elem>)
[src]

impl<A> RawDataClone for OwnedRepr<A> where
    A: Clone
[src]

pub unsafe fn clone_with_ptr(
    &self,
    ptr: NonNull<<OwnedRepr<A> as RawData>::Elem>
) -> (OwnedRepr<A>, NonNull<<OwnedRepr<A> as RawData>::Elem>)
[src]

pub unsafe fn clone_from_with_ptr(
    &mut self,
    other: &OwnedRepr<A>,
    ptr: NonNull<<OwnedRepr<A> as RawData>::Elem>
) -> NonNull<<OwnedRepr<A> as RawData>::Elem>
[src]

impl<A> RawDataClone for RawViewRepr<*const A>[src]

pub unsafe fn clone_with_ptr(
    &self,
    ptr: NonNull<<RawViewRepr<*const A> as RawData>::Elem>
) -> (RawViewRepr<*const A>, NonNull<<RawViewRepr<*const A> as RawData>::Elem>)
[src]

impl<A> RawDataClone for RawViewRepr<*mut A>[src]

pub unsafe fn clone_with_ptr(
    &self,
    ptr: NonNull<<RawViewRepr<*mut A> as RawData>::Elem>
) -> (RawViewRepr<*mut A>, NonNull<<RawViewRepr<*mut A> as RawData>::Elem>)
[src]