[][src]Struct fart::path::Path

pub struct Path<T, U> {
    pub commands: Vec<LineCommand<T, U>>,
}

A series of line commands that describe a path.

Fields

commands: Vec<LineCommand<T, U>>

This path's line commands.

Methods

impl<T, U> Path<T, U>[src]

pub fn new() -> Path<T, U>[src]

Construct a new, empty path.

pub fn with_commands<I>(commands: I) -> Path<T, U> where
    I: IntoIterator<Item = LineCommand<T, U>>, 
[src]

Construct a new path with the given line commands.

Trait Implementations

impl<T: Default, U: Default> Default for Path<T, U>[src]

impl<'a, T> From<&'a Path<T, SceneSpace>> for Path where
    T: Copy + Debug + Into<Parameters>, 
[src]

impl<T: Clone, U: Clone> Clone for Path<T, U>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug, U: Debug> Debug for Path<T, U>[src]

Auto Trait Implementations

impl<T, U> Send for Path<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for Path<T, U> where
    T: Sync,
    U: Sync

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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