1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/* Appellation: structural <mod> Contrib: FL03 <jo3mccain@icloud.com> */ use crate::ops::{Op, Params}; pub struct Adder<A, B = A> { args: BinaryArgs<A, B> } impl<A, B> Adder<A, B> { pub fn new(lhs: A, rhs: B) -> Self { Self { args: BinaryArgs::new(lhs, rhs) } } } pub trait StructuralFn { type Output; }