pub trait Activator<T> {
type Output;
// Required method
fn activate(&self, input: T) -> Self::Output;
}Expand description
An Activator defines an interface for structural activation functions that can be
applied onto various types.
Required Associated Types§
Required Methods§
Trait Implementations§
Implementations on Foreign Types§
Source§impl<X, Y> Activator<X> for Box<dyn Activator<X, Output = Y>>
Available on crate feature alloc only.
impl<X, Y> Activator<X> for Box<dyn Activator<X, Output = Y>>
Available on crate feature
alloc only.