[][src]Trait cursive_markup::html::Converter

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

A converter for HTML annotations.

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

Required methods

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).

Loading content...

Implementors

impl Converter<RichAnnotation> for RichConverter[src]

Loading content...