pub enum PathSmoothing {
None,
Light,
Strong,
}Expand description
Controls optional curve smoothing for path geometry before tessellation.
PathSmoothing is intended for authored or imported paths whose source data
approximates curves with many short line segments, such as single-stroke SVG
fonts. Existing paths keep their exact geometry by default.
Variants§
None
Preserve the authored path exactly.
Light
Lightly smooth polyline runs while preserving sharp corners.
Strong
More aggressively smooth polyline runs for pen-like paths.
Trait Implementations§
Source§impl Clone for PathSmoothing
impl Clone for PathSmoothing
Source§impl CoercionRules for PathSmoothing
impl CoercionRules for PathSmoothing
impl Copy for PathSmoothing
Source§impl Debug for PathSmoothing
impl Debug for PathSmoothing
Source§impl Default for PathSmoothing
impl Default for PathSmoothing
Source§impl<'de> Deserialize<'de> for PathSmoothing
impl<'de> Deserialize<'de> for PathSmoothing
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
impl Eq for PathSmoothing
Source§impl Hash for PathSmoothing
impl Hash for PathSmoothing
Source§impl HelperFunctions for PathSmoothing
impl HelperFunctions for PathSmoothing
Source§fn register_all_functions()
fn register_all_functions()
Registers all helper functions for this type.
Source§impl Interpolatable for PathSmoothing
impl Interpolatable for PathSmoothing
Source§fn interpolate(&self, other: &Self, t: f64) -> Self
fn interpolate(&self, other: &Self, t: f64) -> Self
Source§impl PartialEq for PathSmoothing
impl PartialEq for PathSmoothing
Source§impl Serialize for PathSmoothing
impl Serialize for PathSmoothing
impl StructuralPartialEq for PathSmoothing
Source§impl ToPaxValue for PathSmoothing
impl ToPaxValue for PathSmoothing
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a
PaxValue.Auto Trait Implementations§
impl Freeze for PathSmoothing
impl RefUnwindSafe for PathSmoothing
impl Send for PathSmoothing
impl Sync for PathSmoothing
impl Unpin for PathSmoothing
impl UnsafeUnpin for PathSmoothing
impl UnwindSafe for PathSmoothing
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> PropertyValue for T
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.