Trait Rho

Source
pub trait Rho<Rhs = Self> {
    type Output;

    // Required method
    fn rho(&self, rhs: Rhs) -> Self::Output;
}
Expand description

The Rho trait enables the definition of new activation functions often implemented as fieldless structs.

Required Associated Types§

Required Methods§

Source

fn rho(&self, rhs: Rhs) -> Self::Output

Trait Implementations§

Source§

impl<X, Y> Rho<X> for Box<dyn Rho<X, Output = Y>>

Source§

type Output = Y

Source§

fn rho(&self, rhs: X) -> Self::Output

Implementations on Foreign Types§

Source§

impl<X, Y> Rho<X> for Box<dyn Rho<X, Output = Y>>

Source§

type Output = Y

Source§

fn rho(&self, rhs: X) -> Self::Output

Implementors§

Source§

impl<X, Y, F> Rho<X> for F
where F: Fn(X) -> Y,