Struct cursive_markup::html::RichConverter
source · [−]pub struct RichConverter;
Expand description
A converter for RichAnnotation
.
Besides the straightforward mappings of links and text effects, this converter styles links with the underline effect and code snippets with the secondary palette color.
Trait Implementations
sourceimpl Converter<RichAnnotation> for RichConverter
impl Converter<RichAnnotation> for RichConverter
sourcefn get_style(&self, annotation: &RichAnnotation) -> Option<Style>
fn get_style(&self, annotation: &RichAnnotation) -> Option<Style>
Returns the style for the given annotation (if any).
sourcefn get_link<'a>(&self, annotation: &'a RichAnnotation) -> Option<&'a str>
fn get_link<'a>(&self, annotation: &'a RichAnnotation) -> Option<&'a str>
Returns the link target for the given annotation (if any).
Auto Trait Implementations
impl RefUnwindSafe for RichConverter
impl Send for RichConverter
impl Sync for RichConverter
impl Unpin for RichConverter
impl UnwindSafe for RichConverter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more