pub struct PrefixLinesToText { /* private fields */ }Expand description
Stateful renderer for the final pipeline stage.
It fills node glyph slots, attaches message lines, and writes complete text lines for one rendered graph row at a time.
Implementations§
Source§impl PrefixLinesToText
impl PrefixLinesToText
Sourcepub fn new() -> PrefixLinesToText
pub fn new() -> PrefixLinesToText
Create a renderer with empty output state.
Sourcepub fn with_link_line_placement(
self,
placement: LinkLinePlacement,
) -> PrefixLinesToText
pub fn with_link_line_placement( self, placement: LinkLinePlacement, ) -> PrefixLinesToText
Choose where link-line padding is placed. Defaults to Top.
Sourcepub fn next_text(
&mut self,
prefix_lines: Vec<PrefixLine>,
separator_line: bool,
glyph: &str,
message: &str,
min_row_height: usize,
) -> String
pub fn next_text( &mut self, prefix_lines: Vec<PrefixLine>, separator_line: bool, glyph: &str, message: &str, min_row_height: usize, ) -> String
Render the next row of prefix lines into a String.
Sourcepub fn write_next_text(
&mut self,
out: &mut String,
prefix_lines: Vec<PrefixLine>,
separator_line: bool,
glyph: &str,
message: &str,
min_row_height: usize,
)
pub fn write_next_text( &mut self, out: &mut String, prefix_lines: Vec<PrefixLine>, separator_line: bool, glyph: &str, message: &str, min_row_height: usize, )
Write the next row of prefix lines into out.
Trait Implementations§
Source§impl Default for PrefixLinesToText
impl Default for PrefixLinesToText
Source§fn default() -> PrefixLinesToText
fn default() -> PrefixLinesToText
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrefixLinesToText
impl RefUnwindSafe for PrefixLinesToText
impl Send for PrefixLinesToText
impl Sync for PrefixLinesToText
impl Unpin for PrefixLinesToText
impl UnsafeUnpin for PrefixLinesToText
impl UnwindSafe for PrefixLinesToText
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