pub struct Dash {
pub pattern: Vec<Animated<f32>>,
pub offset: Animated<f32>,
}Expand description
A dash pattern.
Fields§
§pattern: Vec<Animated<f32>>Alternating dash and gap lengths, as fractions of the shorter side: one to
MAX_DASH_ENTRIES non-negative entries, not all zero. An odd count repeats once more to
pair up.
offset: Animated<f32>How far into the pattern the stroke starts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dash
impl<'de> Deserialize<'de> for Dash
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 StructuralPartialEq for Dash
Auto Trait Implementations§
impl Forget for Dash
impl Freeze for Dashwhere
*const u8 is !null: Freeze,
PhantomData<Animated<f32>>: Freeze,
PhantomData<Keyframe<f32>>: Freeze,
*const DataBinding is !null: Freeze,
PhantomData<DataBinding>: Freeze,
impl Move for Dash
impl RefUnwindSafe for Dash
impl Send for Dash
impl Sync for Dash
impl Unpin for Dash
impl UnsafeUnpin for Dashwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Animated<f32>>: UnsafeUnpin,
PhantomData<Keyframe<f32>>: UnsafeUnpin,
*const DataBinding is !null: UnsafeUnpin,
PhantomData<DataBinding>: UnsafeUnpin,
impl UnwindSafe for Dash
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