pub trait Annotation<Leaf>: Default + Clone + Combine<Self> + Primitive {
    fn from_leaf(leaf: &Leaf) -> Self;

    fn from_node<C, S>(node: &C) -> Self
    where
        C: Compound<Self, S, Leaf = Leaf>,
        C::Leaf: Archive
, { ... } }
Expand description

The trait defining an annotation type over a leaf

Required Methods

Creates an annotation from the leaf type

Provided Methods

Create an annotation from a node

Implementations on Foreign Types

Implementors