Struct tui::widgets::LineGauge[][src]

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

A compact widget to display a task progress over a single line.

Examples:

LineGauge::default()
    .block(Block::default().borders(Borders::ALL).title("Progress"))
    .gauge_style(Style::default().fg(Color::White).bg(Color::Black).add_modifier(Modifier::BOLD))
    .line_set(symbols::line::THICK)
    .ratio(0.4);

Implementations

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

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

pub fn ratio(self, ratio: f64) -> Self[src]

pub fn line_set(self, set: Set) -> Self[src]

pub fn label<T>(self, label: T) -> Self where
    T: Into<Spans<'a>>, 
[src]

pub fn style(self, style: Style) -> Self[src]

pub fn gauge_style(self, style: Style) -> Self[src]

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for LineGauge<'a>

impl<'a> Send for LineGauge<'a>

impl<'a> Sync for LineGauge<'a>

impl<'a> Unpin for LineGauge<'a>

impl<'a> UnwindSafe for LineGauge<'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, 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.