pub struct Printer { /* private fields */ }Expand description
The step printer log_start_stop builds. The arguments of one call arrive as one list, so a
line is , a green > and a reset, a space, then [, the arguments’ text joined by
single spaces, and ].
Implementations§
Source§impl Printer
impl Printer
Sourcepub fn new(out: SharedWriter) -> Printer
pub fn new(out: SharedWriter) -> Printer
A printer writing to out.
Sourcepub fn print(&self, a: &[&dyn Display])
pub fn print(&self, a: &[&dyn Display])
Prints one line. Each argument’s Display must be its plain text (a Cmd displays
as its command line, a GoDuration as its duration string such as 1m0s).
Sourcepub fn out(&self) -> SharedWriter ⓘ
pub fn out(&self) -> SharedWriter ⓘ
The writer this printer prints to (the command’s stdout).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Printer
impl Freeze for Printer
impl Move for Printer
impl RefUnwindSafe for Printer
impl Send for Printer
impl Sync for Printer
impl Unpin for Printer
impl UnsafeUnpin for Printer
impl UnwindSafe for Printer
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