pub struct Renderer { /* private fields */ }Expand description
Renderer is created per Printer. All state lives in RenderState behind a
Mutex so the caller doesn’t see interior mutability.
Implementations§
Source§impl Renderer
impl Renderer
Sourcepub fn render_status(&self, w: &dyn Writer, depth: usize, f: &StatusFields<'_>)
pub fn render_status(&self, w: &dyn Writer, depth: usize, f: &StatusFields<'_>)
Top-level status dispatcher. Routes to the topmost open section’s pending-statuses buffer when one exists (so subjects can be right-padded to a common column at section close); otherwise writes immediately.
Source§impl Renderer
impl Renderer
Sourcepub fn render_heading(&self, w: &dyn Writer, text: &str)
pub fn render_heading(&self, w: &dyn Writer, text: &str)
Heading: bold styled by Theme::header. No === === decoration. Always depth 0.
Sourcepub fn render_bullet(&self, w: &dyn Writer, depth: usize, text: &str)
pub fn render_bullet(&self, w: &dyn Writer, depth: usize, text: &str)
Bullet: glyph -, then space, then text. Uncolored. The renderer’s only
bullet glyph; +/~/>/* are forbidden.
Sourcepub fn render_hint(&self, w: &dyn Writer, depth: usize, text: &str)
pub fn render_hint(&self, w: &dyn Writer, depth: usize, text: &str)
Hint: arrow glyph + dim text. Shown at Normal+ (NOT Quiet). The canonical “next step” surface.
Sourcepub fn render_note(&self, w: &dyn Writer, depth: usize, text: &str)
pub fn render_note(&self, w: &dyn Writer, depth: usize, text: &str)
Note: multi-line prose. Suppressed at both Quiet and Normal; only Verbose.
Auto Trait Implementations§
impl !Freeze for Renderer
impl RefUnwindSafe for Renderer
impl Send for Renderer
impl Sync for Renderer
impl Unpin for Renderer
impl UnsafeUnpin for Renderer
impl UnwindSafe for Renderer
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