Struct svgparser::AspectRatio
[−]
[src]
pub struct AspectRatio { pub defer: bool, pub align: Align, pub slice: bool, }
Representation of the preserveAspectRatio
attribute.
Fields
defer: bool
<defer>
value.
Set to true
when defer
value is present.
align: Align
<align>
value.
slice: bool
<meetOrSlice>
value.
- Set to
true
whenslice
value is present. - Set to
false
whenmeet
value is present or value is not set at all.
Methods
impl AspectRatio
[src]
pub fn from_span(span: StrSpan) -> Result<Self, StreamError>
[src]
Parses AspectRatio
from StrSpan
.
Trait Implementations
impl Copy for AspectRatio
[src]
impl Clone for AspectRatio
[src]
fn clone(&self) -> AspectRatio
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for AspectRatio
[src]
fn eq(&self, __arg_0: &AspectRatio) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AspectRatio) -> bool
[src]
This method tests for !=
.
impl Debug for AspectRatio
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FromStr for AspectRatio
[src]
type Err = StreamError
The associated error which can be returned from parsing.
fn from_str(text: &str) -> Result<Self, StreamError>
[src]
Parses a string s
to return a value of this type. Read more