Struct immeta::Dimensions [] [src]

pub struct Dimensions {
    pub width: u32,
    pub height: u32,
}

Represents image dimensions in pixels.

As it turns out, this is essentially the only common piece of information across various image formats.

It is possible to convert pairs of type (T1, T2), where T1 and T2 are primitive number types, to this type, however, this is mostly needed for internal usage.

Fields

Image width in pixels.

Image height in pixels.

Trait Implementations

impl Copy for Dimensions
[src]

impl Clone for Dimensions
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Dimensions
[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 Eq for Dimensions
[src]

impl Debug for Dimensions
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: ToPrimitive, U: ToPrimitive> From<(T, U)> for Dimensions
[src]

[src]

Performs the conversion.