MarkdownElement

Trait MarkdownElement 

Source
pub trait MarkdownElement: DynClone + Debug {
    // Required method
    fn render(&self) -> String;
}
Expand description

An element that can be rendered as to markdown.

Required Methods§

Source

fn render(&self) -> String

Renders the element to markdown.

Trait Implementations§

Source§

impl<'clone> Clone for Box<dyn MarkdownElement + 'clone>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, T> From<T> for Box<dyn MarkdownElement + 'a>
where T: Clone + Debug + Display + 'a,

Source§

fn from(value: T) -> Self

Converts to this type from the input type.

Implementors§

Source§

impl<T> MarkdownElement for T
where T: Clone + Debug + Display,

Implemented for all types that do implement Display.

The implementation calls the Display::fmt method.