pub enum TraceShape {
Rect(f64, f64),
Ellipse(f64, f64),
Path(Vec<(f64, f64)>),
PathCommands(Vec<(PathCommand, bool)>),
}
Expand description
Trace shape
Variants§
Rect(f64, f64)
width and height
Ellipse(f64, f64)
radius
Path(Vec<(f64, f64)>)
points
PathCommands(Vec<(PathCommand, bool)>)
explicit path commands corresponds to SVG spec: https://svgwg.org/svg2-draft/paths.html#TheDProperty the second parameter indicates whether it’s absolute (true) or relative (false)
Trait Implementations§
Source§impl Clone for TraceShape
impl Clone for TraceShape
Source§fn clone(&self) -> TraceShape
fn clone(&self) -> TraceShape
Returns a copy of the value. Read more
1.0.0 · 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 TraceShape
impl Debug for TraceShape
Source§impl<'de> Deserialize<'de> for TraceShape
impl<'de> Deserialize<'de> for TraceShape
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 TraceShape
impl PartialEq for TraceShape
Source§impl Serialize for TraceShape
impl Serialize for TraceShape
impl StructuralPartialEq for TraceShape
Auto Trait Implementations§
impl Freeze for TraceShape
impl RefUnwindSafe for TraceShape
impl Send for TraceShape
impl Sync for TraceShape
impl Unpin for TraceShape
impl UnwindSafe for TraceShape
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