[][src]Enum nvtt_rs::RoundMode

pub enum RoundMode {
    None,
    ToNearestMultipleOfFour,
    ToNearestPowerOfTwo,
    ToNextMultipleOfFour,
    ToNextPowerOfTwo,
    ToPreviousMultipleOfFour,
    ToPreviousPowerOfTwo,
}

Controls how the image edge length is rounded when the image is compressed.

Variants

None

The image size is not changed.

ToNearestMultipleOfFour

Round the size of each edge to the nearest multiple of four.

ToNearestPowerOfTwo

Round the size of each edge to the nearest power of two.

ToNextMultipleOfFour

Round the size of each edge up to the next highest multiple of four.

ToNextPowerOfTwo

Round the size of each edge up to the next highest power of two.

ToPreviousMultipleOfFour

Round the size of each edge down to the next lowest multiple of four.

ToPreviousPowerOfTwo

Round the size of each edge down to the next lowest power of two.

Trait Implementations

impl Clone for RoundMode[src]

impl Copy for RoundMode[src]

impl Debug for RoundMode[src]

impl Default for RoundMode[src]

impl<'de> Deserialize<'de> for RoundMode[src]

impl Eq for RoundMode[src]

impl<'_> From<&'_ RoundMode> for NvttRoundMode[src]

impl From<RoundMode> for NvttRoundMode[src]

impl Hash for RoundMode[src]

impl PartialEq<RoundMode> for RoundMode[src]

impl PartialEq<RoundMode> for NvttRoundMode[src]

impl PartialEq<u32> for RoundMode[src]

impl Serialize for RoundMode[src]

impl StructuralEq for RoundMode[src]

impl StructuralPartialEq for RoundMode[src]

impl TryFrom<u32> for RoundMode[src]

type Error = EnumConvertError<NvttRoundMode>

The type returned in the event of a conversion error.

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.