Annotator

Trait Annotator 

Source
pub trait Annotator {
    // Required method
    fn annotate(
        &self,
        content: &str,
        annotations: &AnnotationMap,
    ) -> Result<String, AnnotatorError>;
}
Expand description

Common interface for format-specific annotators

Required Methods§

Source

fn annotate( &self, content: &str, annotations: &AnnotationMap, ) -> Result<String, AnnotatorError>

Annotate a document with comments from the annotation map

Implementors§