pub struct HeatmapData<'a> {
pub rows: usize,
pub cols: usize,
pub values: &'a [f64],
pub valid: &'a [bool],
pub range: (f64, f64),
pub palette: &'a str,
pub label: &'a str,
pub detector: &'a str,
pub advisory: Option<&'a str>,
}Expand description
Caller-prepared scalar grid projected by heatmap_view.
values and valid are row-major and must each contain exactly
rows * cols entries. The helper validates them but never resamples them:
only the caller’s domain knows whether a smaller grid requires point
sampling, area integration, complex averaging, or another detector rule.
Fields§
§rows: usizeNumber of non-zero grid rows.
cols: usizeNumber of non-zero grid columns.
values: &'a [f64]Finite row-major scalar values.
valid: &'a [bool]Row-major validity mask, parallel to values.
range: (f64, f64)Finite inclusive display range (min, max).
palette: &'a strOne of sim_lib_scene::HEATMAP_PALETTES.
label: &'a strNon-empty accessible label for the represented quantity.
detector: &'a strNon-empty caller-supplied detector or sampling description.
advisory: Option<&'a str>Optional non-empty warning or qualification rendered with the grid.
Trait Implementations§
Source§impl<'a> Clone for HeatmapData<'a>
impl<'a> Clone for HeatmapData<'a>
Source§fn clone(&self) -> HeatmapData<'a>
fn clone(&self) -> HeatmapData<'a>
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 moreimpl<'a> Copy for HeatmapData<'a>
Auto Trait Implementations§
impl<'a> Freeze for HeatmapData<'a>
impl<'a> RefUnwindSafe for HeatmapData<'a>
impl<'a> Send for HeatmapData<'a>
impl<'a> Sync for HeatmapData<'a>
impl<'a> Unpin for HeatmapData<'a>
impl<'a> UnsafeUnpin for HeatmapData<'a>
impl<'a> UnwindSafe for HeatmapData<'a>
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