Enum font_types::PenCommand
source · pub enum PenCommand {
MoveTo {
x: f32,
y: f32,
},
LineTo {
x: f32,
y: f32,
},
QuadTo {
cx0: f32,
cy0: f32,
x: f32,
y: f32,
},
CurveTo {
cx0: f32,
cy0: f32,
cx1: f32,
cy1: f32,
x: f32,
y: f32,
},
Close,
}
Expand description
Captures commands to Pen to facilitate implementations that buffer commands.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for PenCommand
impl Clone for PenCommand
source§fn clone(&self) -> PenCommand
fn clone(&self) -> PenCommand
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 PenCommand
impl Debug for PenCommand
source§impl PartialEq for PenCommand
impl PartialEq for PenCommand
source§fn eq(&self, other: &PenCommand) -> bool
fn eq(&self, other: &PenCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PenCommand
impl StructuralPartialEq for PenCommand
Auto Trait Implementations§
impl Freeze for PenCommand
impl RefUnwindSafe for PenCommand
impl Send for PenCommand
impl Sync for PenCommand
impl Unpin for PenCommand
impl UnwindSafe for PenCommand
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