Trait Converter

Source
pub trait Converter<A> {
    // Required methods
    fn get_style(&self, annotation: &A) -> Option<Style>;
    fn get_link<'a>(&self, annotation: &'a A) -> Option<&'a str>;
}
Expand description

A converter for HTML annotations.

This trait extracts the text formatting and links from the annotations created by a TextDecorator.

Required Methods§

Source

fn get_style(&self, annotation: &A) -> Option<Style>

Returns the style for the given annotation (if any).

Returns the link target for the given annotation (if any).

Implementors§