[][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 From<Vec<Command>> for Data[src]

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

impl From<Data> for Value[src]

impl Default for Data[src]

impl Clone for Data[src]

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

Performs copy-assignment from source. Read more

impl Deref for Data[src]

type Target = [Command]

The resulting type after dereferencing.

Auto Trait Implementations

impl Send for Data

impl Sync for Data

Blanket Implementations

impl<T> From for T[src]

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, 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> Any for T where
    T: 'static + ?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.