pub struct Text { /* private fields */ }Expand description
Struct that used for presenting progress with plain texts.
It looks like:
Doing something§Examples
use std::thread;
extern crate progress;
fn main() {
let mut text = progress::Text::new();
text.set_job_title("Drawing...");
thread::sleep_ms(1000);
text.set_job_title("Painting...");
thread::sleep_ms(1000);
text.set_job_title("Sleeping zzz");
thread::sleep_ms(1000);
text.set_job_title("Wait! Is that a nyan cat?");
thread::sleep_ms(1000);
text.set_job_title("This must be my dream zzzzzz");
thread::sleep_ms(1000);
text.jobs_done();
}Implementations§
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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