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

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

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Calls the given closure and return the result. Read more

Calls the given closure on self.

Calls the given closure on self.

Calls the given closure if condition == true.