#[non_exhaustive]pub enum ClickTarget {
Drawing(DrawingId),
Marker {
series: SeriesId,
index: usize,
},
Series(SeriesId),
}Expand description
What a click hit: the first in priority order (drawing, marker, series).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Drawing(DrawingId)
A drawing (its body or a handle).
Marker
Marker index of series, in the time order Chart::markers
returns them.
Series(SeriesId)
A series: a candle’s body or wick, within 4 CSS px of a line, inside a histogram bar, or on a dot.
Trait Implementations§
Source§impl Clone for ClickTarget
impl Clone for ClickTarget
impl Copy for ClickTarget
Source§impl Debug for ClickTarget
impl Debug for ClickTarget
impl Eq for ClickTarget
Source§impl PartialEq for ClickTarget
impl PartialEq for ClickTarget
impl StructuralPartialEq for ClickTarget
Auto Trait Implementations§
impl Forget for ClickTarget
impl Freeze for ClickTarget
impl Move for ClickTarget
impl RefUnwindSafe for ClickTarget
impl Send for ClickTarget
impl Sync for ClickTarget
impl Unpin for ClickTarget
impl UnsafeUnpin for ClickTarget
impl UnwindSafe for ClickTarget
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