Struct tiny_skia::StrokeDash
source · [−]pub struct StrokeDash { /* private fields */ }
Expand description
A stroke dashing properties.
Contains an array of pairs, where the first number indicates an “on” interval and the second one indicates an “off” interval; a dash offset value and internal properties.
Guarantees
- The dash array always have an even number of values.
- All dash array values are finite and >= 0.
- There is at least two dash array values.
- The sum of all dash array values is positive and finite.
- Dash offset is finite.
Implementations
sourceimpl StrokeDash
impl StrokeDash
Trait Implementations
sourceimpl Clone for StrokeDash
impl Clone for StrokeDash
sourcefn clone(&self) -> StrokeDash
fn clone(&self) -> StrokeDash
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StrokeDash
impl Debug for StrokeDash
sourceimpl PartialEq<StrokeDash> for StrokeDash
impl PartialEq<StrokeDash> for StrokeDash
sourcefn eq(&self, other: &StrokeDash) -> bool
fn eq(&self, other: &StrokeDash) -> bool
impl StructuralPartialEq for StrokeDash
Auto Trait Implementations
impl RefUnwindSafe for StrokeDash
impl Send for StrokeDash
impl Sync for StrokeDash
impl Unpin for StrokeDash
impl UnwindSafe for StrokeDash
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more