pub enum ChartElementId {
Series(SeriesId),
OverlayIndicator(usize),
PaneIndicator(usize),
}Expand description
Identifies any selectable element across the entire chart.
A single SelectionState<ChartElementId> tracks the one element the user
has clicked, whether it is a series, an overlay indicator on the main chart,
or a separate-pane indicator (RSI, MACD, …). Indicators are identified by
their index in the indicator registry.
Variants§
Series(SeriesId)
A price or volume series on the main chart.
OverlayIndicator(usize)
An overlay indicator drawn on the main price chart (SMA, EMA, …), identified by its index in the indicator registry.
PaneIndicator(usize)
A separate-pane indicator below the main chart (RSI, MACD, …), identified by its index in the indicator registry.
Trait Implementations§
Source§impl Clone for ChartElementId
impl Clone for ChartElementId
Source§fn clone(&self) -> ChartElementId
fn clone(&self) -> ChartElementId
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 ChartElementId
Source§impl Debug for ChartElementId
impl Debug for ChartElementId
impl Eq for ChartElementId
Source§impl Hash for ChartElementId
impl Hash for ChartElementId
Source§impl PartialEq for ChartElementId
impl PartialEq for ChartElementId
Source§fn eq(&self, other: &ChartElementId) -> bool
fn eq(&self, other: &ChartElementId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChartElementId
Auto Trait Implementations§
impl Freeze for ChartElementId
impl RefUnwindSafe for ChartElementId
impl Send for ChartElementId
impl Sync for ChartElementId
impl Unpin for ChartElementId
impl UnsafeUnpin for ChartElementId
impl UnwindSafe for ChartElementId
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