[][src]Enum sixtyfps_corelib::PathData

#[repr(C)]pub enum PathData {
    None,
    Elements(SharedArray<PathElement>),
    Events(SharedArray<PathEvent>, SharedArray<Point>),
}

PathData represents a path described by either high-level elements or low-level events and coordinates.

Variants

None

None is the variant when the path is empty.

The Elements variant is used to make a Path from shared arrays of elements.

The Events variant describes the path as a series of low-level events and associated coordinates.

Implementations

impl PathData[src]

pub fn iter(&self) -> PathDataIterator<'_>[src]

This function returns an iterator that allows traversing the path by means of lyon events.

pub fn iter_fitted(&self, width: f32, height: f32) -> PathDataIterator<'_>[src]

This function returns an iterator that allows traversing the path by means of lyon events.

Trait Implementations

impl Clone for PathData[src]

impl Debug for PathData[src]

impl Default for PathData[src]

impl PartialEq<PathData> for PathData[src]

impl StructuralPartialEq for PathData[src]

Auto Trait Implementations

impl RefUnwindSafe for PathData

impl !Send for PathData

impl !Sync for PathData

impl Unpin for PathData

impl UnwindSafe for PathData

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.

OSZAR »