[][src]Struct usvg::ViewBox

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 Copy for ViewBox[src]

impl Debug for ViewBox[src]

Auto Trait Implementations

impl RefUnwindSafe for ViewBox

impl Send for ViewBox

impl Sync for ViewBox

impl Unpin for ViewBox

impl UnwindSafe for ViewBox

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.