pub trait Converter<A> {
    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

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

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

Implementors