OpAssignAPI

Trait OpAssignAPI 

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

Required Methods§

Source

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

Element-wise assignment for same layout arrays.

Source

fn assign_uninit( &self, c: &mut <Self as DeviceRawAPI<MaybeUninit<TC>>>::Raw, lc: &Layout<D>, a: &<Self as DeviceRawAPI<TA>>::Raw, la: &Layout<D>, ) -> Result<()>

Source

fn fill( &self, c: &mut <Self as DeviceRawAPI<TC>>::Raw, lc: &Layout<D>, fill: TA, ) -> 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<TC, D, TA> OpAssignAPI<TC, D, TA> for DeviceCpuSerial
where TC: Clone, TA: Clone + DTypeCastAPI<TC>, D: DimAPI,

Source§

impl<TC, TA, D> OpAssignAPI<TC, D, TA> for DeviceFaer
where TC: Clone + Send + Sync, TA: Clone + Send + Sync + DTypeCastAPI<TC>, D: DimAPI,