[−][src]Struct tui::widgets::Sparkline
Widget to render a sparkline over one or more lines.
Examples
Sparkline::default() .block(Block::default().title("Sparkline").borders(Borders::ALL)) .data(&[0, 2, 3, 4, 1, 4, 10]) .max(5) .style(Style::default().fg(Color::Red).bg(Color::White));
Implementations
impl<'a> Sparkline<'a>
[src]
pub fn block(self, block: Block<'a>) -> Sparkline<'a>
[src]
pub fn style(self, style: Style) -> Sparkline<'a>
[src]
pub fn data(self, data: &'a [u64]) -> Sparkline<'a>
[src]
pub fn max(self, max: u64) -> Sparkline<'a>
[src]
pub fn bar_set(self, bar_set: Set) -> Sparkline<'a>
[src]
Trait Implementations
impl<'a> Clone for Sparkline<'a>
[src]
impl<'a> Debug for Sparkline<'a>
[src]
impl<'a> Default for Sparkline<'a>
[src]
impl<'a> Widget for Sparkline<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Sparkline<'a>
impl<'a> Send for Sparkline<'a>
impl<'a> Sync for Sparkline<'a>
impl<'a> Unpin for Sparkline<'a>
impl<'a> UnwindSafe for Sparkline<'a>
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,