Trait Activate

Source
pub trait Activate<A> {
    type Cont<B>;

    // Required method
    fn activate<V, F>(&self, f: F) -> Self::Cont<V>
       where F: Fn(A) -> V;
}
Expand description

The Activate trait establishes a common interface for entities that can be activated according to some function

Required Associated Types§

Source

type Cont<B>

Required Methods§

Source

fn activate<V, F>(&self, f: F) -> Self::Cont<V>
where F: Fn(A) -> V,

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.

Implementations on Foreign Types§

Source§

impl<A, S, D> Activate<A> for &ArrayBase<S, D>
where A: ScalarOperand, D: Dimension, S: Data<Elem = A>,

Source§

type Cont<V> = ArrayBase<OwnedRepr<V>, D>

Source§

fn activate<B, F>(&self, f: F) -> Array<B, D>
where F: Fn(A) -> B,

Source§

impl<A, S, D> Activate<A> for &mut ArrayBase<S, D>
where A: ScalarOperand, D: Dimension, S: Data<Elem = A>,

Source§

type Cont<V> = ArrayBase<OwnedRepr<V>, D>

Source§

fn activate<B, F>(&self, f: F) -> Array<B, D>
where F: Fn(A) -> B,

Source§

impl<A, S, D> Activate<A> for ArrayBase<S, D>
where A: ScalarOperand, D: Dimension, S: Data<Elem = A>,

Source§

type Cont<V> = ArrayBase<OwnedRepr<V>, D>

Source§

fn activate<V, F>(&self, f: F) -> Self::Cont<V>
where F: Fn(A) -> V,

Implementors§