pub enum PathEffect {
Corner {
radius: f32,
},
Dash {
intervals: Vec<f32>,
phase: f32,
},
}Expand description
Path effect applied to a stroked path.
Mirrors Compose’s PathEffect.
Variants§
Corner
Replace sharp corners with rounded arcs of the given radius.
Dash
Draw the path as a dashed line.
Trait Implementations§
Source§impl Clone for PathEffect
impl Clone for PathEffect
Source§fn clone(&self) -> PathEffect
fn clone(&self) -> PathEffect
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 PathEffect
impl Debug for PathEffect
Source§impl PartialEq for PathEffect
impl PartialEq for PathEffect
Source§fn eq(&self, other: &PathEffect) -> bool
fn eq(&self, other: &PathEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PathEffect
Auto Trait Implementations§
impl Freeze for PathEffect
impl RefUnwindSafe for PathEffect
impl Send for PathEffect
impl Sync for PathEffect
impl Unpin for PathEffect
impl UnsafeUnpin for PathEffect
impl UnwindSafe for PathEffect
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