Struct svgdom::ViewBox[][src]

pub struct ViewBox {
    pub x: f64,
    pub y: f64,
    pub w: f64,
    pub h: f64,
}

Representation of the <viewBox> type.

Fields

Methods

impl ViewBox
[src]

Creates a new ViewBox.

Trait Implementations

impl WriteBuffer for ViewBox
[src]

Writes data to the Vec<u8> buffer using specified WriteOptions.

Writes data to the Vec<u8> buffer using default WriteOptions.

Returns an object that implements fmt::Display using provided write options.

impl FuzzyEq<ViewBox> for ViewBox
[src]

Returns true if values are approximately equal.

Returns true if values are not approximately equal.

impl FromSpan for ViewBox
[src]

Parses data from a StrSpan.

impl Display for ViewBox
[src]

Formats the value using the given formatter. Read more

impl Clone for ViewBox
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FromStr for ViewBox
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Debug for ViewBox
[src]

Formats the value using the given formatter. Read more

impl Copy for ViewBox
[src]

impl PartialEq<ViewBox> for ViewBox
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<ViewBox> for AttributeValue
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ViewBox

impl Sync for ViewBox