Struct svgparser::AspectRatio [] [src]

pub struct AspectRatio {
    pub defer: bool,
    pub align: Align,
    pub slice: bool,
}

Representation of the preserveAspectRatio attribute.

Fields

<defer> value.

Set to true when defer value is present.

<align> value.

<meetOrSlice> value.

  • Set to true when slice value is present.
  • Set to false when meet value is present or value is not set at all.

Methods

impl AspectRatio
[src]

[src]

Parses AspectRatio from StrSpan.

Trait Implementations

impl Copy for AspectRatio
[src]

impl Clone for AspectRatio
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for AspectRatio
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for AspectRatio
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for AspectRatio
[src]

The associated error which can be returned from parsing.

[src]

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

Auto Trait Implementations

impl Send for AspectRatio

impl Sync for AspectRatio