pub struct Document<'a> {
pub toc: Node<'a>,
pub body: Vec<Node<'a>>,
}
Expand description
Render the entire document.
Fields§
§toc: Node<'a>
§body: Vec<Node<'a>>
Implementations§
Source§impl<'a> Document<'a>
impl<'a> Document<'a>
Sourcepub fn from_source(source: &'a str) -> Document<'a>
pub fn from_source(source: &'a str) -> Document<'a>
Sourcepub fn render_to_string(self) -> String
pub fn render_to_string(self) -> String
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Document<'a>
impl<'a> RefUnwindSafe for Document<'a>
impl<'a> Send for Document<'a>
impl<'a> Sync for Document<'a>
impl<'a> Unpin for Document<'a>
impl<'a> UnwindSafe for Document<'a>
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