[][src]Struct markdown_composer::types::markdown::Markdown

pub struct Markdown {
    pub elements: Vec<Box<dyn MarkdownElement>>,
}

Fields

elements: Vec<Box<dyn MarkdownElement>>

Implementations

impl<'a> Markdown[src]

pub fn new() -> Self[src]

pub fn with(elements: Vec<Box<dyn MarkdownElement>>) -> Self[src]

pub fn with_remark() -> Self[src]

Creates a new markdown file, pre-populating it with the remark notice.

pub fn header(
    &mut self,
    text: impl Into<String>,
    level: impl ToUsize
) -> &mut Self
[src]

pub fn header1(&mut self, text: impl Into<String>) -> &mut Self[src]

pub fn header2(&mut self, text: impl Into<String>) -> &mut Self[src]

pub fn header3(&mut self, text: impl Into<String>) -> &mut Self[src]

pub fn header4(&mut self, text: impl Into<String>) -> &mut Self[src]

pub fn header5(&mut self, text: impl Into<String>) -> &mut Self[src]

pub fn header6(&mut self, text: impl Into<String>) -> &mut Self[src]

pub fn list(&mut self, list: List) -> &mut Self[src]

pub fn paragraph(&mut self, text: impl Into<String>) -> &mut Self[src]

pub fn render(&self) -> String[src]

Trait Implementations

impl Default for Markdown[src]

impl Display for Markdown[src]

Auto Trait Implementations

impl !RefUnwindSafe for Markdown

impl !Send for Markdown

impl !Sync for Markdown

impl Unpin for Markdown

impl !UnwindSafe for Markdown

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.