Trait whistlinoak::Annotation
source · [−]pub trait Annotation<T> {
fn compute(leaf: &T) -> Self;
fn combine<'a>(annotations: impl Iterator<Item = &'a Self>) -> Self
where
Self: 'a;
}
Expand description
Annotation over a leaf.
Required Methods
Implementations on Foreign Types
sourceimpl<T> Annotation<T> for ()
impl<T> Annotation<T> for ()
The unit struct annotates everything