pub struct TerminalHeatmap { /* private fields */ }Expand description
Terminal heatmap renderer
Implementations§
Source§impl TerminalHeatmap
impl TerminalHeatmap
Sourcepub fn from_tracker(tracker: &PixelCoverageTracker) -> Self
pub fn from_tracker(tracker: &PixelCoverageTracker) -> Self
Create from coverage tracker
Sourcepub fn from_values(cells: Vec<Vec<f32>>) -> Self
pub fn from_values(cells: Vec<Vec<f32>>) -> Self
Create from raw coverage values
Sourcepub fn with_palette(self, palette: ColorPalette) -> Self
pub fn with_palette(self, palette: ColorPalette) -> Self
Set color palette
Sourcepub fn without_color(self) -> Self
pub fn without_color(self) -> Self
Disable ANSI color output
Sourcepub fn render_with_border(&self) -> String
pub fn render_with_border(&self) -> String
Render with border
Trait Implementations§
Source§impl Clone for TerminalHeatmap
impl Clone for TerminalHeatmap
Source§fn clone(&self) -> TerminalHeatmap
fn clone(&self) -> TerminalHeatmap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TerminalHeatmap
impl RefUnwindSafe for TerminalHeatmap
impl Send for TerminalHeatmap
impl Sync for TerminalHeatmap
impl Unpin for TerminalHeatmap
impl UnsafeUnpin for TerminalHeatmap
impl UnwindSafe for TerminalHeatmap
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