pub struct Markdown {
pub elements: Vec<Box<dyn MarkdownElement>>,
pub footers: Vec<Box<dyn MarkdownElement>>,
}
Expand description
A markdown document.
Fields§
§elements: Vec<Box<dyn MarkdownElement>>
The markdown elements.
The markdown footer elements.
Implementations§
Source§impl Markdown
impl Markdown
Sourcepub fn with(
elements: Vec<Box<dyn MarkdownElement>>,
footers: Vec<Box<dyn MarkdownElement>>,
) -> Self
pub fn with( elements: Vec<Box<dyn MarkdownElement>>, footers: Vec<Box<dyn MarkdownElement>>, ) -> Self
Creates a new Markdown
instance with the given elements and footers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Markdown
impl !RefUnwindSafe for Markdown
impl !Send for Markdown
impl !Sync for Markdown
impl Unpin for Markdown
impl !UnwindSafe for Markdown
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more