[−][src]Struct tui::widgets::LineGauge
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]
T: Into<Spans<'a>>,
pub fn style(self, style: Style) -> Self
[src]
pub fn gauge_style(self, style: Style) -> Self
[src]
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for LineGauge<'a>
[src]
impl<'a> Send for LineGauge<'a>
[src]
impl<'a> Sync for LineGauge<'a>
[src]
impl<'a> Unpin for LineGauge<'a>
[src]
impl<'a> UnwindSafe for LineGauge<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,