pub struct MarkdownStreamerCore { /* private fields */ }Expand description
Core engine for streaming Markdown to a terminal with live formatting. Handles word wrapping, syntax highlighting for code blocks, and nested block styles.
Implementations§
Source§impl MarkdownStreamerCore
impl MarkdownStreamerCore
pub fn new() -> Self
Sourcepub fn read_available(&mut self) -> String
pub fn read_available(&mut self) -> String
Pulls processed terminal output from the internal buffer.
Sourcepub fn process_buffer(&mut self, final_call: bool)
pub fn process_buffer(&mut self, final_call: bool)
Main loop for parsing the incoming Markdown stream.
pub fn terminal_stream(&mut self, text: &str)
pub fn finish(&mut self)
Auto Trait Implementations§
impl !Freeze for MarkdownStreamerCore
impl RefUnwindSafe for MarkdownStreamerCore
impl Send for MarkdownStreamerCore
impl Sync for MarkdownStreamerCore
impl Unpin for MarkdownStreamerCore
impl UnwindSafe for MarkdownStreamerCore
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