Enum riddle_image::packer::ImagePackerSizePolicy[][src]

pub enum ImagePackerSizePolicy {
    Fixed(Vector2<u32>),
    LinearSteps(Vector2<u32>),
    Pow2Square,
}

Controls the initial size of the output packed image size, and how that image grows over time if more space is required to pack all the supplied images.

Variants

Fixed(Vector2<u32>)

The output image will initially be the supplied size, and if the images can’t be packed in to that size packing will fail.

LinearSteps(Vector2<u32>)

The output image will initially be the supplied value. If the images can’t be packed in to that size, the output image will be increased by the same amount. The resultant image will always be n * initial_dimensions.

Pow2Square

The output image will initially be [1, 1]. If the images can’t be packed in to that size the dimensions will double. The resultablt image will always be a square with side of 2^n.

Trait Implementations

impl Clone for ImagePackerSizePolicy[src]

impl Debug for ImagePackerSizePolicy[src]

impl Default for ImagePackerSizePolicy[src]

impl Eq for ImagePackerSizePolicy[src]

impl PartialEq<ImagePackerSizePolicy> for ImagePackerSizePolicy[src]

impl StructuralEq for ImagePackerSizePolicy[src]

impl StructuralPartialEq for ImagePackerSizePolicy[src]

Auto Trait Implementations

impl RefUnwindSafe for ImagePackerSizePolicy

impl Send for ImagePackerSizePolicy

impl Sync for ImagePackerSizePolicy

impl Unpin for ImagePackerSizePolicy

impl UnwindSafe for ImagePackerSizePolicy

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> Pointable for T

type Init = T

The type for initializers.

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.