[go: up one dir, main page]

URLRewriter

Trait URLRewriter 

Source
pub trait URLRewriter:
    RefUnwindSafe
    + Send
    + Sync {
    // Required method
    fn to_html(&self, url: &str) -> String;
}
Expand description

Trait for link and image URL rewrite extensions.

Required Methods§

Source

fn to_html(&self, url: &str) -> String

Converts the given URL from Markdown to its representation when output as HTML.

Trait Implementations§

Source§

impl<'c> Debug for dyn URLRewriter + 'c

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Implementors§

Source§

impl<F> URLRewriter for F
where F: for<'a> Fn(&'a str) -> String + RefUnwindSafe + Send + Sync,