Struct tiny_skia::StrokeDash[][src]

pub struct StrokeDash { /* fields omitted */ }

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

impl StrokeDash[src]

pub fn new(dash_array: Vec<f32>, dash_offset: f32) -> Option<Self>[src]

Creates a new stroke dashing object.

Trait Implementations

impl Clone for StrokeDash[src]

impl Debug for StrokeDash[src]

impl PartialEq<StrokeDash> for StrokeDash[src]

impl StructuralPartialEq for StrokeDash[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.