Struct svgdom::ViewBox [−][src]
Representation of the <viewBox>
type.
Fields
x: f64
y: f64
w: f64
h: f64
Methods
impl ViewBox
[src]
impl ViewBox
Trait Implementations
impl WriteBuffer for ViewBox
[src]
impl WriteBuffer for ViewBox
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
Writes data to the Vec<u8>
buffer using specified WriteOptions
.
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
Writes data to the Vec<u8>
buffer using default WriteOptions
.
fn with_write_opt(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>
[src]
fn with_write_opt(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>
Returns an object that implements fmt::Display
using provided write options.
impl FuzzyEq<ViewBox> for ViewBox
[src]
impl FuzzyEq<ViewBox> for ViewBox
fn fuzzy_eq(&self, other: &ViewBox) -> bool
[src]
fn fuzzy_eq(&self, other: &ViewBox) -> bool
Returns true
if values are approximately equal.
fn fuzzy_ne(&self, other: &Rhs) -> bool
[src]
fn fuzzy_ne(&self, other: &Rhs) -> bool
Returns true
if values are not approximately equal.
impl FromSpan for ViewBox
[src]
impl FromSpan for ViewBox
impl Display for ViewBox
[src]
impl Display for ViewBox
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Clone for ViewBox
[src]
impl Clone for ViewBox
fn clone(&self) -> ViewBox
[src]
fn clone(&self) -> ViewBox
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl FromStr for ViewBox
[src]
impl FromStr for ViewBox
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ViewBox, <ViewBox as FromStr>::Err>
[src]
fn from_str(s: &str) -> Result<ViewBox, <ViewBox as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
impl Debug for ViewBox
[src]
impl Debug for ViewBox
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for ViewBox
[src]
impl Copy for ViewBox
impl PartialEq<ViewBox> for ViewBox
[src]
impl PartialEq<ViewBox> for ViewBox
fn eq(&self, other: &ViewBox) -> bool
[src]
fn eq(&self, other: &ViewBox) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ViewBox) -> bool
[src]
fn ne(&self, other: &ViewBox) -> bool
This method tests for !=
.
impl From<ViewBox> for AttributeValue
[src]
impl From<ViewBox> for AttributeValue