pub enum VectorPathCommand {
CubicBezierCurve(VectorPathCommandCubicBezierCurve),
Line(VectorPathCommandLine),
// some variants omitted
}Expand description
Represents a vector path command
Variants§
CubicBezierCurve(VectorPathCommandCubicBezierCurve)
A cubic Bézier curve to a given point
Line(VectorPathCommandLine)
A straight line to a given point
Implementations§
Source§impl VectorPathCommand
impl VectorPathCommand
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
pub fn is_cubic_bezier_curve(&self) -> bool
pub fn is_line(&self) -> bool
pub fn on_cubic_bezier_curve<F: FnOnce(&VectorPathCommandCubicBezierCurve)>( &self, fnc: F, ) -> &Self
pub fn on_line<F: FnOnce(&VectorPathCommandLine)>(&self, fnc: F) -> &Self
pub fn as_cubic_bezier_curve( &self, ) -> Option<&VectorPathCommandCubicBezierCurve>
pub fn as_line(&self) -> Option<&VectorPathCommandLine>
pub fn cubic_bezier_curve<T: AsRef<VectorPathCommandCubicBezierCurve>>( t: T, ) -> Self
pub fn line<T: AsRef<VectorPathCommandLine>>(t: T) -> Self
Trait Implementations§
Source§impl AsRef<VectorPathCommand> for VectorPathCommand
impl AsRef<VectorPathCommand> for VectorPathCommand
Source§fn as_ref(&self) -> &VectorPathCommand
fn as_ref(&self) -> &VectorPathCommand
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for VectorPathCommand
impl Clone for VectorPathCommand
Source§fn clone(&self) -> VectorPathCommand
fn clone(&self) -> VectorPathCommand
Returns a duplicate 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 VectorPathCommand
impl Debug for VectorPathCommand
Source§impl Default for VectorPathCommand
impl Default for VectorPathCommand
Source§impl<'de> Deserialize<'de> for VectorPathCommand
impl<'de> Deserialize<'de> for VectorPathCommand
Source§fn deserialize<D>(deserializer: D) -> Result<VectorPathCommand, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<VectorPathCommand, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl RObject for VectorPathCommand
impl RObject for VectorPathCommand
Auto Trait Implementations§
impl Freeze for VectorPathCommand
impl RefUnwindSafe for VectorPathCommand
impl Send for VectorPathCommand
impl Sync for VectorPathCommand
impl Unpin for VectorPathCommand
impl UnwindSafe for VectorPathCommand
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