[−][src]Struct svg::node::element::path::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]
T: Into<Parameters>,
Add an absolute Command::Move
command.
pub fn move_by<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add a relative Command::Move
command.
pub fn line_to<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add an absolute Command::Line
command.
pub fn line_by<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add a relative Command::Line
command.
pub fn horizontal_line_to<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add an absolute Command::HorizontalLine
command.
pub fn horizontal_line_by<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add a relative Command::HorizontalLine
command.
pub fn vertical_line_to<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add an absolute Command::VerticalLine
command.
pub fn vertical_line_by<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add a relative Command::VerticalLine
command.
pub fn quadratic_curve_to<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add an absolute Command::QuadraticCurve
command.
pub fn quadratic_curve_by<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add a relative Command::QuadraticCurve
command.
pub fn smooth_quadratic_curve_to<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add an absolute Command::SmoothQuadraticCurve
command.
pub fn smooth_quadratic_curve_by<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add a relative Command::SmoothQuadraticCurve
command.
pub fn cubic_curve_to<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add an absolute Command::CubicCurve
command.
pub fn cubic_curve_by<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add a relative Command::CubicCurve
command.
pub fn smooth_cubic_curve_to<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add an absolute Command::SmoothCubicCurve
command.
pub fn smooth_cubic_curve_by<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add a relative Command::SmoothCubicCurve
command.
pub fn elliptical_arc_to<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
Add an absolute Command::EllipticalArc
command.
pub fn elliptical_arc_by<T>(self, parameters: T) -> Self where
T: Into<Parameters>,
[src]
T: Into<Parameters>,
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(&self) -> 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]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,