pub struct HeatmapCell {
pub bar_idx: usize,
pub delta: f64,
pub volume: f64,
pub intensity: f32,
}Expand description
A single cell in the heatmap strip
Fields§
§bar_idx: usizeBar index this cell corresponds to
delta: f64Delta value (positive = buying, negative = selling)
volume: f64Total volume at this bar
intensity: f32Normalized intensity (0.0-1.0) for color mapping
Implementations§
Source§impl HeatmapCell
impl HeatmapCell
Sourcepub fn with_normalized_intensity(self, max_abs_delta: f64) -> Self
pub fn with_normalized_intensity(self, max_abs_delta: f64) -> Self
Set intensity based on delta relative to max delta
Sourcepub fn is_selling(&self) -> bool
pub fn is_selling(&self) -> bool
Check if this is a selling cell (negative delta)
Trait Implementations§
Source§impl Clone for HeatmapCell
impl Clone for HeatmapCell
Source§fn clone(&self) -> HeatmapCell
fn clone(&self) -> HeatmapCell
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 Copy for HeatmapCell
Auto Trait Implementations§
impl Freeze for HeatmapCell
impl RefUnwindSafe for HeatmapCell
impl Send for HeatmapCell
impl Sync for HeatmapCell
impl Unpin for HeatmapCell
impl UnsafeUnpin for HeatmapCell
impl UnwindSafe for HeatmapCell
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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