concision_core/func/activate/
mod.rs1pub use self::{binary::*, linear::*, nl::*};
6
7pub mod binary;
8pub mod linear;
9pub mod nl;
10
11pub(crate) mod prelude {
12 pub use super::binary::*;
13 pub use super::linear::*;
14 pub use super::nl::*;
15 pub use super::{Activate, Evaluate};
16}
17
18#[doc(hidden)]
19pub trait Activate<T> {
20 type Output;
21
22 fn activate(&self, args: &T) -> Self::Output;
23}
24
25#[doc(hidden)]
26pub trait Evaluate<T> {
27 type Output;
28
29 fn eval(&self, args: T) -> Self::Output;
30}
31
32activator!(LinearActor::<T>(T::clone) where T: Clone);