rsdiff_core/ops/kinds/unary/
mod.rs

1/*
2   Appellation: unary <mod>
3   Contrib: FL03 <jo3mccain@icloud.com>
4*/
5//! # Unary Operations
6//!
7//!
8pub use self::{kinds::*, operator::*, specs::*};
9
10pub(crate) mod kinds;
11pub(crate) mod operator;
12pub(crate) mod specs;
13
14pub trait ApplyUnary<T> {
15    type Output;
16
17    fn apply(&self, x: T) -> Self::Output;
18
19    fn apply_once(self, x: T) -> Self::Output;
20}