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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
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.