[−][src]Enum nvtt_rs::RoundMode
Controls how the image edge length is rounded when the image is compressed.
Variants
The image size is not changed.
Round the size of each edge to the nearest multiple of four.
Round the size of each edge to the nearest power of two.
Round the size of each edge up to the next highest multiple of four.
Round the size of each edge up to the next highest power of two.
Round the size of each edge down to the next lowest multiple of four.
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 Eq for RoundMode
[src]
impl<'_> From<&'_ RoundMode> for NvttRoundMode
[src]
impl From<RoundMode> for NvttRoundMode
[src]
impl Hash for RoundMode
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<RoundMode> for RoundMode
[src]
impl PartialEq<RoundMode> for NvttRoundMode
[src]
impl PartialEq<u32> for RoundMode
[src]
fn eq(&self, rhs: &NvttRoundMode) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[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.
fn try_from(raw: NvttRoundMode) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for RoundMode
impl Send for RoundMode
impl Sync for RoundMode
impl Unpin for RoundMode
impl UnwindSafe for RoundMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,