Enum cosmic_text::Command
source · pub enum Command {
MoveTo(Vector),
LineTo(Vector),
CurveTo(Vector, Vector, Vector),
QuadTo(Vector, Vector),
Close,
}
Expand description
Path command.
Variants§
MoveTo(Vector)
Begins a new subpath at the specified point.
LineTo(Vector)
A straight line from the previous point to the specified point.
CurveTo(Vector, Vector, Vector)
A cubic bezier curve from the previous point to the final point with two intermediate control points.
QuadTo(Vector, Vector)
A quadratic curve from the previous point to the final point with one intermediate control point.
Close
Closes a subpath, connecting the final point to the initial point.
Implementations§
Trait Implementations§
impl Copy for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more