[][src]Struct svg::node::element::path::Data

pub struct Data(_);

A data attribute.

Methods

impl Data[src]

pub fn new() -> Self[src]

Create a data attribute.

pub fn parse(content: &str) -> Result<Self>[src]

Parse a data attribute.

impl Data[src]

pub fn move_to<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add an absolute Command::Move command.

pub fn move_by<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add a relative Command::Move command.

pub fn line_to<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add an absolute Command::Line command.

pub fn line_by<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add a relative Command::Line command.

pub fn horizontal_line_to<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add an absolute Command::HorizontalLine command.

pub fn horizontal_line_by<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add a relative Command::HorizontalLine command.

pub fn vertical_line_to<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add an absolute Command::VerticalLine command.

pub fn vertical_line_by<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add a relative Command::VerticalLine command.

pub fn quadratic_curve_to<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add an absolute Command::QuadraticCurve command.

pub fn quadratic_curve_by<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add a relative Command::QuadraticCurve command.

pub fn smooth_quadratic_curve_to<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add an absolute Command::SmoothQuadraticCurve command.

pub fn smooth_quadratic_curve_by<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add a relative Command::SmoothQuadraticCurve command.

pub fn cubic_curve_to<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add an absolute Command::CubicCurve command.

pub fn cubic_curve_by<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add a relative Command::CubicCurve command.

pub fn smooth_cubic_curve_to<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add an absolute Command::SmoothCubicCurve command.

pub fn smooth_cubic_curve_by<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add a relative Command::SmoothCubicCurve command.

pub fn elliptical_arc_to<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add an absolute Command::EllipticalArc command.

pub fn elliptical_arc_by<T>(self, parameters: T) -> Self where
    T: Into<Parameters>, 
[src]

Add a relative Command::EllipticalArc command.

pub fn close(self) -> Self[src]

Add a Command::Close command.

Trait Implementations

impl Default for Data[src]

impl Clone for Data[src]

impl From<Vec<Command>> for Data[src]

impl From<Data> for Vec<Command>[src]

impl From<Data> for Value[src]

impl Deref for Data[src]

type Target = [Command]

The resulting type after dereferencing.

Auto Trait Implementations

impl Unpin for Data

impl Sync for Data

impl Send for Data

impl UnwindSafe for Data

impl RefUnwindSafe for Data

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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