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§
fn new(&self, element: N) -> Self::Ann
fn annotate_scc(&mut self, scc: Self::SccIdx, annotation: Self::Ann)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".