[][src]Struct rsvg_internals::IntrinsicDimensions

pub struct IntrinsicDimensions {
    pub width: Option<Length<Horizontal>>,
    pub height: Option<Length<Vertical>>,
    pub vbox: Option<ViewBox>,

Intrinsic dimensions of an SVG document fragment: its width, height, viewBox attributes.

Note that either of those attributes can be omitted, so they are all Option<T>. For example, an element like <svg viewBox="0 0 100 100"> will have vbox=Some(...), and the other two fields set to None.


width: Option<Length<Horizontal>>

Contents of the width attribute.

height: Option<Length<Vertical>>

Contents of the height attribute.

vbox: Option<ViewBox>

Contents of the viewBox attribute.

Trait Implementations

impl Clone for IntrinsicDimensions[src]

impl Copy for IntrinsicDimensions[src]

impl Debug for IntrinsicDimensions[src]

impl PartialEq<IntrinsicDimensions> for IntrinsicDimensions[src]

impl StructuralPartialEq for IntrinsicDimensions[src]

Auto Trait Implementations

impl RefUnwindSafe for IntrinsicDimensions

impl Send for IntrinsicDimensions

impl Sync for IntrinsicDimensions

impl Unpin for IntrinsicDimensions

impl UnwindSafe for IntrinsicDimensions

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,