OpAssignAPI

Trait OpAssignAPI 

Source
pub trait OpAssignAPI<T, D>
where D: DimAPI, Self: DeviceAPI<T>,
{ // Required methods fn assign( &self, c: &mut <Self as DeviceRawAPI<T>>::Raw, lc: &Layout<D>, a: &<Self as DeviceRawAPI<T>>::Raw, la: &Layout<D>, ) -> Result<()>; fn fill( &self, c: &mut <Self as DeviceRawAPI<T>>::Raw, lc: &Layout<D>, fill: T, ) -> Result<()>; }

Required Methods§

Source

fn assign( &self, c: &mut <Self as DeviceRawAPI<T>>::Raw, lc: &Layout<D>, a: &<Self as DeviceRawAPI<T>>::Raw, la: &Layout<D>, ) -> Result<()>

Element-wise assignment for same layout arrays.

Source

fn fill( &self, c: &mut <Self as DeviceRawAPI<T>>::Raw, lc: &Layout<D>, fill: T, ) -> Result<()>

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<T, D> OpAssignAPI<T, D> for DeviceCpuSerial
where T: Clone, D: DimAPI,

Source§

impl<T, D> OpAssignAPI<T, D> for DeviceFaer
where T: Clone + Send + Sync, D: DimAPI,