rstsr_core/storage/
assignment.rsuse crate::prelude_dev::*;
pub trait OpAssignArbitaryAPI<T, DC, DA>
where
DC: DimAPI,
DA: DimAPI,
Self: DeviceAPI<T>,
{
fn assign_arbitary(
&self,
c: &mut <Self as DeviceRawAPI<T>>::Raw,
lc: &Layout<DC>,
a: &<Self as DeviceRawAPI<T>>::Raw,
la: &Layout<DA>,
) -> Result<()>;
}
pub trait OpAssignAPI<T, D>
where
D: DimAPI,
Self: DeviceAPI<T>,
{
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<()>;
}