pub enum OutlineCommand {
MoveTo(OutlineMoveTo),
LineTo(OutlineLineTo),
QuadTo(OutlineQuadTo),
CurveTo(OutlineCurveTo),
Close(OutlineClose),
}Expand description
One glyph outline command in font design units.
move_to and line_to share one JSON shape, so either decodes into
OutlineCommand::MoveTo. The kind literal stays authoritative;
validators read it rather than the variant.
Variants§
MoveTo(OutlineMoveTo)
LineTo(OutlineLineTo)
QuadTo(OutlineQuadTo)
CurveTo(OutlineCurveTo)
Close(OutlineClose)
Trait Implementations§
Source§impl Clone for OutlineCommand
impl Clone for OutlineCommand
Source§fn clone(&self) -> OutlineCommand
fn clone(&self) -> OutlineCommand
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 OutlineCommand
impl Debug for OutlineCommand
Source§impl<'de> Deserialize<'de> for OutlineCommand
impl<'de> Deserialize<'de> for OutlineCommand
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 From<OutlineClose> for OutlineCommand
impl From<OutlineClose> for OutlineCommand
Source§fn from(value: OutlineClose) -> Self
fn from(value: OutlineClose) -> Self
Converts to this type from the input type.
Source§impl From<OutlineCurveTo> for OutlineCommand
impl From<OutlineCurveTo> for OutlineCommand
Source§fn from(value: OutlineCurveTo) -> Self
fn from(value: OutlineCurveTo) -> Self
Converts to this type from the input type.
Source§impl From<OutlineLineTo> for OutlineCommand
impl From<OutlineLineTo> for OutlineCommand
Source§fn from(value: OutlineLineTo) -> Self
fn from(value: OutlineLineTo) -> Self
Converts to this type from the input type.
Source§impl From<OutlineMoveTo> for OutlineCommand
impl From<OutlineMoveTo> for OutlineCommand
Source§fn from(value: OutlineMoveTo) -> Self
fn from(value: OutlineMoveTo) -> Self
Converts to this type from the input type.
Source§impl From<OutlineQuadTo> for OutlineCommand
impl From<OutlineQuadTo> for OutlineCommand
Source§fn from(value: OutlineQuadTo) -> Self
fn from(value: OutlineQuadTo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutlineCommand
impl PartialEq for OutlineCommand
Source§impl Serialize for OutlineCommand
impl Serialize for OutlineCommand
impl StructuralPartialEq for OutlineCommand
Auto Trait Implementations§
impl Freeze for OutlineCommand
impl RefUnwindSafe for OutlineCommand
impl Send for OutlineCommand
impl Sync for OutlineCommand
impl Unpin for OutlineCommand
impl UnsafeUnpin for OutlineCommand
impl UnwindSafe for OutlineCommand
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