pub struct Document { /* private fields */ }Implementations§
Source§impl Document
impl Document
pub fn new(title: &str) -> Self
pub fn title(&self) -> String
pub fn output(&self) -> String
pub fn stylistic_output(&self) -> String
pub fn append(&mut self, content: String)
pub fn append_void(&mut self, tag: &str)
pub fn append_wrapped_with_attr(&mut self, tag: &str, attr: &str, content: &str)
pub fn append_wrapped(&mut self, tag: &str, content: &str)
pub fn append_newline(&mut self)
pub fn append_math_ml(&mut self, content: &str)
pub fn append_raw_math_ml(&mut self, content: MathML)
pub fn append_code(&mut self, content: &str)
pub fn append_evaluation(&mut self, expression: &str, result: &str)
pub fn append_text(&mut self, emphasis: Option<Emphasis>, content: &str)
pub fn add_markdown(&mut self, markdown: MarkdownTag)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more