pub trait DeviceTruncAPI<T, D>: DeviceAPI<T> + DeviceAPI<Self::TOut>where
D: DimAPI,{
type TOut;
// Required methods
fn op_muta_refb(
&self,
a: &mut Self::Raw,
la: &Layout<D>,
b: &Self::Raw,
lb: &Layout<D>,
) -> Result<(), Error>;
fn op_muta(&self, a: &mut Self::Raw, la: &Layout<D>) -> Result<(), Error>;
}
Required Associated Types§
Required Methods§
fn op_muta_refb( &self, a: &mut Self::Raw, la: &Layout<D>, b: &Self::Raw, lb: &Layout<D>, ) -> Result<(), Error>
fn op_muta(&self, a: &mut Self::Raw, la: &Layout<D>) -> 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.