Enum sierra::ImageExtent

source ·
pub enum ImageExtent {
    D1 {
        width: ImageSize,
    },
    D2 {
        width: ImageSize,
        height: ImageSize,
    },
    D3 {
        width: ImageSize,
        height: ImageSize,
        depth: ImageSize,
    },
}
Expand description

Extent of the image.

Variants§

§

D1

Fields

§width: ImageSize

Width of the image

One dimensional extent.

§

D2

Fields

§width: ImageSize

Width of the image

§height: ImageSize

Height of the image.

Two dimensional extent.

§

D3

Fields

§width: ImageSize

Width of the image

§height: ImageSize

Height of the image.

§depth: ImageSize

Depth of the image.

Three dimensional extent.

Implementations§

Convert image extent (1,2 or 3 dimensional) into 3 dimensional extent. If image doesn’t have height or depth they are set to 1.

Convert image extent (1,2 or 3 dimensional) into 2 dimensional extent. If image doesn’t have height it is set to 1. depth is ignored.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Checks if this value is equivalent to the given key. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.