Struct svgdom::types::path::Path
[−]
[src]
pub struct Path { pub d: Vec<Segment>, }
Representation of the SVG path data.
Fields
d: Vec<Segment>
Vector which contain all the segments.
Methods
impl Path
[src]
fn new() -> Path
Constructs a new path.
fn to_absolute(&mut self)
Converts path's segments into absolute.
Original segments can be mixed (relative, absolute).
fn to_relative(&mut self)
Converts path's segments into relative.
Original segments can be mixed (relative, absolute).
Trait Implementations
impl PartialEq for Path
[src]
fn eq(&self, __arg_0: &Path) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Path) -> bool
This method tests for !=
.
impl Clone for Path
[src]
fn clone(&self) -> Path
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl FromStream for Path
[src]
type Err = ParseError
Error type.
fn from_stream(s: Stream) -> Result<Path, ParseError>
Parses data from Stream
.
fn from_data(data: &[u8]) -> Result<Self, Self::Err>
Parses data from &[u8]
.
impl WriteBuffer for Path
[src]
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
Writes data to Vec<u8>
buffer using specified WriteOptions.
fn write_buf(&self, buf: &mut Vec<u8>)
Writes data to Vec<u8>
buffer using default WriteOptions.
impl Display for Path
[src]
impl WriteToString for Path
[src]
fn to_string_with_opt(&self, opt: &WriteOptions) -> String
Writes data to String
using specified WriteOptions.