pub struct Gauge<'a> { /* private fields */ }
Expand description
A widget to display a task progress.
§Examples:
Gauge::default()
.block(Block::default().borders(Borders::ALL).title("Progress"))
.gauge_style(Style::default().fg(Color::White).bg(Color::Black).add_modifier(Modifier::ITALIC))
.percent(20);
Implementations§
Source§impl<'a> Gauge<'a>
impl<'a> Gauge<'a>
pub fn block(self, block: Block<'a>) -> Gauge<'a>
pub fn percent(self, percent: u16) -> Gauge<'a>
pub fn label<T>(self, label: T) -> Gauge<'a>
pub fn style(self, style: Style) -> Gauge<'a>
pub fn gauge_style(self, style: Style) -> Gauge<'a>
pub fn use_unicode(self, unicode: bool) -> Gauge<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Gauge<'a>
impl<'a> RefUnwindSafe for Gauge<'a>
impl<'a> Send for Gauge<'a>
impl<'a> Sync for Gauge<'a>
impl<'a> Unpin for Gauge<'a>
impl<'a> UnwindSafe for Gauge<'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