pub enum ToolKind {
Rect,
Circle,
Ellipse,
Triangle,
Polygon,
Freehand,
Measure,
Poly,
}Variants§
Rect
Circle
Legacy records only: the drawing tool is Ellipse now, and a
circle is an ellipse with equal radii. Old sessions still parse.
Ellipse
Triangle
Polygon
The regular-N-gon drawing tool; its records store as poly.
Freehand
The freehand drawing tool; its records store as poly.
Measure
The two-point ruler. Never appears in a SelectionRecord — it is
only ever the active tool, and what it produces lands in the
session’s measures array instead.
Poly
What polygon and freehand records are tagged as: one stored kind, one consumer code path, however the vertices were authored.
Implementations§
Trait Implementations§
impl Copy for ToolKind
Source§impl<'de> Deserialize<'de> for ToolKind
impl<'de> Deserialize<'de> for ToolKind
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 ToolKind
impl StructuralPartialEq for ToolKind
Auto Trait Implementations§
impl Freeze for ToolKind
impl RefUnwindSafe for ToolKind
impl Send for ToolKind
impl Sync for ToolKind
impl Unpin for ToolKind
impl UnsafeUnpin for ToolKind
impl UnwindSafe for ToolKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.