pub struct Heatmap { /* private fields */ }Expand description
Heatmap widget (rows × columns of values).
Implementations§
Source§impl Heatmap
impl Heatmap
Sourcepub fn row_labels<I, S>(self, l: I) -> Self
pub fn row_labels<I, S>(self, l: I) -> Self
Row labels (left).
Sourcepub fn col_labels<I, S>(self, l: I) -> Self
pub fn col_labels<I, S>(self, l: I) -> Self
Column labels (bottom).
Sourcepub fn base_style(self, style: Style) -> Self
pub fn base_style(self, style: Style) -> Self
Base style painted over the whole area (beats the theme).
Sourcepub fn cell_width(self, w: u16) -> Self
pub fn cell_width(self, w: u16) -> Self
Cell width in columns (default 2).
Sourcepub fn cell_height(self, h: u16) -> Self
pub fn cell_height(self, h: u16) -> Self
Cell height in rows (default 1).
Sourcepub fn show_values(self, v: bool) -> Self
pub fn show_values(self, v: bool) -> Self
Print values in cells when they fit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Heatmap
impl RefUnwindSafe for Heatmap
impl Send for Heatmap
impl Sync for Heatmap
impl Unpin for Heatmap
impl UnsafeUnpin for Heatmap
impl UnwindSafe for Heatmap
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