Struct usvg::ViewBox [−][src]
pub struct ViewBox { pub rect: Rect, pub aspect: AspectRatio, }
View box.
Fields
rect: Rect
Value of the viewBox
attribute.
aspect: AspectRatio
Value of the preserveAspectRatio
attribute.
Trait Implementations
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for ViewBox
[src]
impl Copy for ViewBox
impl PartialEq for ViewBox
[src]
impl PartialEq 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 Debug for ViewBox
[src]
impl Debug for ViewBox