pub struct PngHeatmap {
pub stats_panel: Option<StatsPanel>,
/* private fields */
}Expand description
PNG heatmap export with trueno-viz style output
Fields§
§stats_panel: Option<StatsPanel>Stats panel for combined coverage display
Implementations§
Source§impl PngHeatmap
impl PngHeatmap
Sourcepub fn with_margin(self, margin: u32) -> Self
pub fn with_margin(self, margin: u32) -> Self
Set margin around the heatmap (trueno-viz style)
Sourcepub fn with_background(self, color: Rgb) -> Self
pub fn with_background(self, color: Rgb) -> Self
Set background color
Sourcepub fn with_border_color(self, color: Rgb) -> Self
pub fn with_border_color(self, color: Rgb) -> Self
Set border color
Sourcepub fn with_palette(self, palette: ColorPalette) -> Self
pub fn with_palette(self, palette: ColorPalette) -> Self
Set color palette
Sourcepub fn with_legend(self) -> Self
pub fn with_legend(self) -> Self
Enable legend overlay
Sourcepub fn with_gap_highlighting(self) -> Self
pub fn with_gap_highlighting(self) -> Self
Enable gap highlighting (red outline for 0% coverage cells)
Sourcepub fn with_borders(self, show: bool) -> Self
pub fn with_borders(self, show: bool) -> Self
Enable or disable cell borders
Sourcepub fn with_title(self, title: &str) -> Self
pub fn with_title(self, title: &str) -> Self
Set title text
Sourcepub fn with_subtitle(self, subtitle: &str) -> Self
pub fn with_subtitle(self, subtitle: &str) -> Self
Set subtitle text (displayed below title)
Sourcepub fn with_combined_stats(self, report: &CombinedCoverageReport) -> Self
pub fn with_combined_stats(self, report: &CombinedCoverageReport) -> Self
Set combined coverage stats panel
Sourcepub fn export(&self, cells: &[Vec<CoverageCell>]) -> Result<Vec<u8>, Error>
pub fn export(&self, cells: &[Vec<CoverageCell>]) -> Result<Vec<u8>, Error>
Export to PNG bytes (trueno-viz style with margins)
Sourcepub fn export_to_file(
&self,
cells: &[Vec<CoverageCell>],
path: &Path,
) -> Result<(), Error>
pub fn export_to_file( &self, cells: &[Vec<CoverageCell>], path: &Path, ) -> Result<(), Error>
Export to file
Trait Implementations§
Source§impl Clone for PngHeatmap
impl Clone for PngHeatmap
Source§fn clone(&self) -> PngHeatmap
fn clone(&self) -> PngHeatmap
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 moreSource§impl Debug for PngHeatmap
impl Debug for PngHeatmap
Auto Trait Implementations§
impl Freeze for PngHeatmap
impl RefUnwindSafe for PngHeatmap
impl Send for PngHeatmap
impl Sync for PngHeatmap
impl Unpin for PngHeatmap
impl UnsafeUnpin for PngHeatmap
impl UnwindSafe for PngHeatmap
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().