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

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

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

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<T>(self, label: T) -> Gauge<'a> where
    T: Into<Span<'a>>, 
[src]

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

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

pub fn use_unicode(self, unicode: bool) -> Gauge<'a>[src]

Trait Implementations

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

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

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

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

Auto Trait Implementations

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

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

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.