pub struct ChartState {
pub kind: ChartKind,
pub hover: Option<(usize, usize)>,
}Expand description
Persistent, observable interaction state (FC-3): the current chart kind and
which (series, point) the pointer last hovered. Serialized so it round-trips
through the headless JSON seam.
Fields§
§kind: ChartKind§hover: Option<(usize, usize)>(series index, point index) under the pointer, or None.
Trait Implementations§
Source§impl Clone for ChartState
impl Clone for ChartState
Source§fn clone(&self) -> ChartState
fn clone(&self) -> ChartState
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 ChartState
impl Debug for ChartState
Source§impl Default for ChartState
impl Default for ChartState
Source§fn default() -> ChartState
fn default() -> ChartState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChartState
impl<'de> Deserialize<'de> for ChartState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChartState
impl PartialEq for ChartState
Source§impl Serialize for ChartState
impl Serialize for ChartState
impl StructuralPartialEq for ChartState
Auto Trait Implementations§
impl Freeze for ChartState
impl RefUnwindSafe for ChartState
impl Send for ChartState
impl Sync for ChartState
impl Unpin for ChartState
impl UnsafeUnpin for ChartState
impl UnwindSafe for ChartState
Blanket Implementations§
impl<T> Allocation for T
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