1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
    Appellation: ops <module>
    Contrib: FL03 <jo3mccain@icloud.com>
*/
//! # Operations
//!
//!
pub use self::kinds::*;

pub(crate) mod kinds;

pub trait Operator {
    fn boxed(self) -> Box<dyn Operator>
    where
        Self: Sized + 'static,
    {
        Box::new(self)
    }
    fn name(&self) -> String;
}

impl Operator for Box<dyn Operator> {
    fn name(&self) -> String {
        self.as_ref().name()
    }
}