pub trait OpSumBoolAPI<D>: DeviceAPI<bool> + DeviceAPI<usize>where
D: DimAPI,{
// Required methods
fn sum_all(&self, a: &Self::Raw, la: &Layout<D>) -> Result<usize, Error>;
fn sum_axes(
&self,
a: &Self::Raw,
la: &Layout<D>,
axes: &[isize],
) -> Result<(Storage<DataOwned<Self::Raw>, usize, Self>, Layout<Vec<usize>>), Error>;
}
Required Methods§
fn sum_all(&self, a: &Self::Raw, la: &Layout<D>) -> Result<usize, Error>
fn sum_axes( &self, a: &Self::Raw, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Self::Raw>, usize, Self>, Layout<Vec<usize>>), 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.