pub struct ProgressLine { /* private fields */ }Expand description
Tracks the last rendered width and constructs carriage-return progress frames.
Input controls are escaped before width accounting. Callers write returned
frames verbatim and own terminal detection, input limits, clipping to prevent
wrapping, output failures, flushing and when to finish or clear the line.
Width sums Unicode scalar columns, like crate::width::fit_line,
conservatively counting joined emoji separately rather than as one grapheme.
No output or automatic cleanup occurs when this value is dropped.
Implementations§
Trait Implementations§
Source§impl Debug for ProgressLine
impl Debug for ProgressLine
Auto Trait Implementations§
impl Freeze for ProgressLine
impl RefUnwindSafe for ProgressLine
impl Send for ProgressLine
impl Sync for ProgressLine
impl Unpin for ProgressLine
impl UnsafeUnpin for ProgressLine
impl UnwindSafe for ProgressLine
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