[][src]Struct tui::widgets::Gauge

pub struct Gauge<'a> { /* fields omitted */ }

A widget to display a task progress.

Examples:

Gauge::default()
    .block(Block::default().borders(Borders::ALL).title("Progress"))
    .style(Style::default().fg(Color::White).bg(Color::Black).modifier(Modifier::ITALIC))
    .percent(20);

Methods

impl<'a> Gauge<'a>[src]

pub fn block(self, block: Block<'a>) -> Gauge<'a>[src]

pub fn percent(self, percent: u16) -> Gauge<'a>[src]

pub fn ratio(self, ratio: f64) -> Gauge<'a>[src]

Sets ratio ([0.0, 1.0]) directly.

pub fn label(self, string: &'a str) -> Gauge<'a>[src]

pub fn style(self, style: Style) -> Gauge<'a>[src]

Trait Implementations

impl<'a> Widget for Gauge<'a>[src]

impl<'a> Default for Gauge<'a>[src]

Auto Trait Implementations

impl<'a> Send for Gauge<'a>

impl<'a> Sync for Gauge<'a>

impl<'a> Unpin for Gauge<'a>

impl<'a> UnwindSafe for Gauge<'a>

impl<'a> RefUnwindSafe for Gauge<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]