pub struct Style<'a> {
pub symbol: String,
pub color: Option<&'a dyn Color>,
pub width: u32,
pub time_to_finish: bool,
pub wrapper: String,
}Fields§
§symbol: StringThis is the symbol that will be used to fill the progress bar
color: Option<&'a dyn Color>This is the color of the progress bar
The colors are defined in the termion crate
width: u32This is the width of the progress bar
time_to_finish: boolThis is the time to finish the progress bar
wrapper: Stringthis the wrapper symbol defaults to [] should be two chars long
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Style<'a>
impl<'a> !RefUnwindSafe for Style<'a>
impl<'a> !Send for Style<'a>
impl<'a> !Sync for Style<'a>
impl<'a> Unpin for Style<'a>
impl<'a> !UnwindSafe for Style<'a>
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