OpSumBoolAPI

Trait OpSumBoolAPI 

Source
pub trait OpSumBoolAPI<D>
where D: DimAPI, Self: DeviceAPI<bool> + DeviceAPI<usize>,
{ // Required methods fn sum_all( &self, a: &<Self as DeviceRawAPI<bool>>::Raw, la: &Layout<D>, ) -> Result<usize>; fn sum_axes( &self, a: &<Self as DeviceRawAPI<bool>>::Raw, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<<Self as DeviceRawAPI<usize>>::Raw>, usize, Self>, Layout<IxD>)>; }

Required Methods§

Source

fn sum_all( &self, a: &<Self as DeviceRawAPI<bool>>::Raw, la: &Layout<D>, ) -> Result<usize>

Source

fn sum_axes( &self, a: &<Self as DeviceRawAPI<bool>>::Raw, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<<Self as DeviceRawAPI<usize>>::Raw>, usize, Self>, Layout<IxD>)>

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<D> OpSumBoolAPI<D> for DeviceCpuSerial
where D: DimAPI,

Source§

impl<D> OpSumBoolAPI<D> for DeviceFaer
where D: DimAPI,