pub enum PathCommand {
M(f64, f64),
L(f64, f64),
Q(f64, f64, f64, f64),
B(f64, f64, f64, f64, f64, f64),
A(f64, f64, f64, i32, i32, f64, f64),
C,
}Expand description
路径操作命令类型。
Variants§
M(f64, f64)
移动到 (x, y)。
L(f64, f64)
直线到 (x, y)。
Q(f64, f64, f64, f64)
二次贝塞尔曲线 (cx, cy, x, y)。
B(f64, f64, f64, f64, f64, f64)
三次贝塞尔曲线 (c1x, c1y, c2x, c2y, x, y)。
A(f64, f64, f64, i32, i32, f64, f64)
椭圆弧 (rx, ry, angle, large, sweep, x, y)。
C
闭合路径。
Trait Implementations§
Source§impl Clone for PathCommand
impl Clone for PathCommand
Source§fn clone(&self) -> PathCommand
fn clone(&self) -> PathCommand
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 PathCommand
impl Debug for PathCommand
Source§impl PartialEq for PathCommand
impl PartialEq for PathCommand
impl StructuralPartialEq for PathCommand
Auto Trait Implementations§
impl Freeze for PathCommand
impl RefUnwindSafe for PathCommand
impl Send for PathCommand
impl Sync for PathCommand
impl Unpin for PathCommand
impl UnsafeUnpin for PathCommand
impl UnwindSafe for PathCommand
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