1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
    Appellation: structural <mod>
    Contrib: FL03 <jo3mccain@icloud.com>
*/

pub trait StructuralFn {
    type Args: StructuredArgs;
    type Output;

    fn eval(&self) -> Self::Output;
}

pub trait StructuredArgs {}

pub struct Sigmoid<T> {
    pub x: T,
}

impl<T> Sigmoid<T> {
    pub fn new(x: T) -> Self {
        Self { x }
    }
}