#[non_exhaustive]pub enum PlotTool {
Pan,
Zoom,
Select,
MeasureDistance,
MeasureArea,
}Expand description
What a primary-button drag does.
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.
Pan
Drag moves the view.
Zoom
Drag draws a box and zooms to it.
Select
Drag draws a box and reports it as the selection.
MeasureDistance
Drag measures the distance and slope between two points.
MeasureArea
Drag measures a rectangular region: area, extrema, slopes, and integrals.
Trait Implementations§
impl Copy for PlotTool
Source§impl<'de> Deserialize<'de> for PlotTool
impl<'de> Deserialize<'de> for PlotTool
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
impl Eq for PlotTool
impl StructuralPartialEq for PlotTool
Auto Trait Implementations§
impl Forget for PlotTool
impl Freeze for PlotTool
impl Move for PlotTool
impl RefUnwindSafe for PlotTool
impl Send for PlotTool
impl Sync for PlotTool
impl Unpin for PlotTool
impl UnsafeUnpin for PlotTool
impl UnwindSafe for PlotTool
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