pub struct DotMatrix { /* private fields */ }Expand description
LED dot matrix: one column of dots per value (0..=1), lit from the bottom.
§Example
use ratatui::{buffer::Buffer, layout::Rect, widgets::Widget};
use tui_chart::DotMatrix;
let m = DotMatrix::new([0.1, 0.4, 0.9, 0.6]).rows(8);
let area = Rect::new(0, 0, 20, 8);
let mut buf = Buffer::empty(area);
m.render(area, &mut buf);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DotMatrix
impl RefUnwindSafe for DotMatrix
impl Send for DotMatrix
impl Sync for DotMatrix
impl Unpin for DotMatrix
impl UnsafeUnpin for DotMatrix
impl UnwindSafe for DotMatrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more