Trait ActivateMut

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

    // Required method
    fn activate_inplace<'a, F>(&'a mut self, f: F)
       where A: 'a,
             F: FnMut(A) -> A;
}
Expand description

A trait for establishing a common mechanism to activate entities in-place.

Required Associated Types§

Source

type Cont<B>

Required Methods§

Source

fn activate_inplace<'a, F>(&'a mut self, f: F)
where A: 'a, F: FnMut(A) -> A,

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> ActivateMut<A> for &mut ArrayBase<S, D>
where A: ScalarOperand, D: Dimension, S: DataMut<Elem = A>,

Source§

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

Source§

fn activate_inplace<'b, F>(&'b mut self, f: F)
where A: 'b, F: FnMut(A) -> A,

Source§

impl<A, S, D> ActivateMut<A> for ArrayBase<S, D>
where A: ScalarOperand, D: Dimension, S: DataMut<Elem = A>,

Source§

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

Source§

fn activate_inplace<'a, F>(&'a mut self, f: F)
where A: 'a, F: FnMut(A) -> A,

Implementors§