pub struct HumanProgress { /* private fields */ }Expand description
Human-readable progress reporter — one line per event to stderr.
DumpEvent::Done emits nothing because the renderer owns the final
stdout line (the path + byte count). This mirrors the design decision in
render/dump.rs: Done is consumed by the reporter only to let it flush;
the visible confirmation is Renderer::project_dump.
Implementations§
Source§impl HumanProgress
impl HumanProgress
Sourcepub fn with_writer(w: impl Write + 'static) -> Self
pub fn with_writer(w: impl Write + 'static) -> Self
Creates a reporter writing to an arbitrary Write sink (used in tests).
Trait Implementations§
Source§impl Default for HumanProgress
impl Default for HumanProgress
Source§impl ProgressReporter for HumanProgress
impl ProgressReporter for HumanProgress
Auto Trait Implementations§
impl !RefUnwindSafe for HumanProgress
impl !Send for HumanProgress
impl !Sync for HumanProgress
impl !UnwindSafe for HumanProgress
impl Freeze for HumanProgress
impl Unpin for HumanProgress
impl UnsafeUnpin for HumanProgress
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