pub trait OpAssignAPI<TC, D, TA = TC>:
DeviceRawAPI<TA>
+ DeviceRawAPI<TC>
+ DeviceRawAPI<MaybeUninit<TC>>where
D: DimAPI,{
// Required methods
fn assign(
&self,
c: &mut Self::Raw,
lc: &Layout<D>,
a: &Self::Raw,
la: &Layout<D>,
) -> Result<(), Error>;
fn assign_uninit(
&self,
c: &mut Self::Raw,
lc: &Layout<D>,
a: &Self::Raw,
la: &Layout<D>,
) -> Result<(), Error>;
fn fill(
&self,
c: &mut Self::Raw,
lc: &Layout<D>,
fill: TA,
) -> Result<(), Error>;
}Required Methods§
Sourcefn assign(
&self,
c: &mut Self::Raw,
lc: &Layout<D>,
a: &Self::Raw,
la: &Layout<D>,
) -> Result<(), Error>
fn assign( &self, c: &mut Self::Raw, lc: &Layout<D>, a: &Self::Raw, la: &Layout<D>, ) -> Result<(), Error>
Element-wise assignment for same layout arrays.
fn assign_uninit( &self, c: &mut Self::Raw, lc: &Layout<D>, a: &Self::Raw, la: &Layout<D>, ) -> Result<(), Error>
fn fill(&self, c: &mut Self::Raw, lc: &Layout<D>, fill: TA) -> Result<(), Error>
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.