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

Return the annotation for the given leaf.

Combine multiple annotations into another annotation.

Implementations on Foreign Types

The unit struct annotates everything

Implementors