Trait Annotations

Source
pub trait Annotations<N: Idx> {
    type Ann: Annotation;
    type SccIdx: Idx + Ord;

    // Required methods
    fn new(&self, element: N) -> Self::Ann;
    fn annotate_scc(&mut self, scc: Self::SccIdx, annotation: Self::Ann);
}
Expand description

An accumulator for annotations.

Required Associated Types§

Required Methods§

Source

fn new(&self, element: N) -> Self::Ann

Source

fn annotate_scc(&mut self, scc: Self::SccIdx, annotation: Self::Ann)

Implementors§

Source§

impl<N: Idx, S: Idx + Ord> Annotations<N> for NoAnnotations<S>