Trait ReduceAll

Source
pub trait ReduceAll<A, T>: PlatformInstance {
    // Required methods
    fn all(self, access: A) -> Result<bool, Error>;
    fn any(self, access: A) -> Result<bool, Error>;
    fn max(self, access: A) -> Result<T, Error>;
    fn min(self, access: A) -> Result<T, Error>;
    fn product(self, access: A) -> Result<T, Error>;
    fn sum(self, access: A) -> Result<T, Error>;
}

Required Methods§

Source

fn all(self, access: A) -> Result<bool, Error>

Source

fn any(self, access: A) -> Result<bool, Error>

Source

fn max(self, access: A) -> Result<T, Error>

Source

fn min(self, access: A) -> Result<T, Error>

Source

fn product(self, access: A) -> Result<T, Error>

Source

fn sum(self, access: A) -> Result<T, 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.

Implementors§

Source§

impl<A, T> ReduceAll<A, T> for Heap
where A: Access<T>, T: CType,

Source§

impl<A, T> ReduceAll<A, T> for Stack
where A: Access<T>, T: CType,

Source§

impl<A: Access<T>, T: CType> ReduceAll<A, T> for Platform

Source§

impl<A: Access<T>, T: CType> ReduceAll<A, T> for Host