Struct Content
pub struct Content { /* private fields */ }Expand description
A bunch of Markdown that has been parsed.
Implementations§
§impl Content
impl Content
pub 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.
pub fn items(&self) -> &[Item]
pub fn items(&self) -> &[Item]
Returns the Markdown items, ready to be rendered.
You can use [view] to turn them into an [Element].
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 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