pub struct ErasedCopyPlan { /* private fields */ }Expand description
Dtype-erased wrapper around CopyPlan.
Implementations§
Source§impl ErasedCopyPlan
impl ErasedCopyPlan
Sourcepub fn compile(
dtype: KernelDType,
dims: &[usize],
dst_strides: &[isize],
src_strides: &[isize],
) -> Result<Self>
pub fn compile( dtype: KernelDType, dims: &[usize], dst_strides: &[isize], src_strides: &[isize], ) -> Result<Self>
Compile a copy plan for one dtype and layout pair.
pub fn dtype(&self) -> KernelDType
Sourcepub fn execute(
&self,
ctx: &ExecContext,
dest: &mut ErasedRawStridedMut<'_>,
src: &ErasedRawStridedRef<'_>,
) -> Result<()>
pub fn execute( &self, ctx: &ExecContext, dest: &mut ErasedRawStridedMut<'_>, src: &ErasedRawStridedRef<'_>, ) -> Result<()>
dest = src through a non-generic dtype-erased replay boundary.
Trait Implementations§
Source§impl Clone for ErasedCopyPlan
impl Clone for ErasedCopyPlan
Source§fn clone(&self) -> ErasedCopyPlan
fn clone(&self) -> ErasedCopyPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ErasedCopyPlan
impl RefUnwindSafe for ErasedCopyPlan
impl Send for ErasedCopyPlan
impl Sync for ErasedCopyPlan
impl Unpin for ErasedCopyPlan
impl UnsafeUnpin for ErasedCopyPlan
impl UnwindSafe for ErasedCopyPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more