pub struct Content { /* private fields */ }Available on crate feature
markdown only.Expand description
A bunch of Markdown that has been parsed.
Implementations§
Source§impl Content
impl Content
Sourcepub fn code_theme(self, theme: Theme) -> Self
Available on crate feature highlighter only.
pub fn code_theme(self, theme: Theme) -> Self
highlighter only.Sets the syntax highlighting theme for code blocks.
This only has an effect when the highlighter feature is enabled.
Existing code blocks are not re-highlighted; call this before
push_str.
Sourcepub fn push_str(&mut self, markdown: &str)
pub fn push_str(&mut self, markdown: &str)
Pushes more Markdown into the Content; parsing incrementally!
This is specially useful when you have long streams of Markdown; like big files or potentially long replies.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Content
impl !RefUnwindSafe for Content
impl Send for Content
impl !Sync for Content
impl Unpin for Content
impl UnsafeUnpin for Content
impl UnwindSafe for Content
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