#[repr(u8)]pub enum ImageQuality {
Low = 0,
Medium = 1,
High = 2,
}
Expand description
Defines the desired quality for sampling an image.
Variants§
Low = 0
Lowest quality with best performance characteristics.
This is typically nearest neighbor sampling.
Medium = 1
Medium quality with reasonable performance characteristics.
This is typically bilinear sampling.
High = 2
Highest quality with worst performance characteristics.
This is typically bicubic sampling.
Trait Implementations§
Source§impl CheckedBitPattern for ImageQuality
impl CheckedBitPattern for ImageQuality
Source§type Bits = u8
type Bits = u8
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &u8) -> bool
fn is_valid_bit_pattern(bits: &u8) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for ImageQuality
impl Clone for ImageQuality
Source§fn clone(&self) -> ImageQuality
fn clone(&self) -> ImageQuality
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Contiguous for ImageQuality
impl Contiguous for ImageQuality
Source§type Int = u8
type Int = u8
The primitive integer type with an identical representation to this
type. Read more
Source§fn from_integer(value: Self::Int) -> Option<Self>
fn from_integer(value: Self::Int) -> Option<Self>
If
value
is within the range for valid instances of this type,
returns Some(converted_value)
, otherwise, returns None
. Read moreSource§fn into_integer(self) -> Self::Int
fn into_integer(self) -> Self::Int
Perform the conversion from
C
into the underlying integral type. This
mostly exists otherwise generic code would need unsafe for the value as integer
Read moreSource§impl Debug for ImageQuality
impl Debug for ImageQuality
Source§impl Default for ImageQuality
impl Default for ImageQuality
Source§fn default() -> ImageQuality
fn default() -> ImageQuality
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImageQuality
impl PartialEq for ImageQuality
impl Copy for ImageQuality
impl Eq for ImageQuality
impl NoUninit for ImageQuality
impl StructuralPartialEq for ImageQuality
Auto Trait Implementations§
impl Freeze for ImageQuality
impl RefUnwindSafe for ImageQuality
impl Send for ImageQuality
impl Sync for ImageQuality
impl Unpin for ImageQuality
impl UnwindSafe for ImageQuality
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more