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§
Sourcefn annotate(
&self,
content: &str,
annotations: &AnnotationMap,
) -> Result<String, AnnotatorError>
fn annotate( &self, content: &str, annotations: &AnnotationMap, ) -> Result<String, AnnotatorError>
Annotate a document with comments from the annotation map