#[repr(u32)]pub enum ImageRendering {
Smooth = 0,
Pixelated = 1,
}
Expand description
This enum specifies how the source image will be scaled.
Variants§
Smooth = 0
The image is scaled with a linear interpolation algorithm.
Pixelated = 1
The image is scaled with the nearest neighbor algorithm.
Trait Implementations§
Source§impl Clone for ImageRendering
impl Clone for ImageRendering
Source§fn clone(&self) -> ImageRendering
fn clone(&self) -> ImageRendering
Returns a copy 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 Debug for ImageRendering
impl Debug for ImageRendering
Source§impl Default for ImageRendering
impl Default for ImageRendering
Source§impl Display for ImageRendering
impl Display for ImageRendering
Source§impl FromStr for ImageRendering
impl FromStr for ImageRendering
Source§impl Hash for ImageRendering
impl Hash for ImageRendering
Source§impl PartialEq for ImageRendering
impl PartialEq for ImageRendering
Source§impl TryFrom<&str> for ImageRendering
impl TryFrom<&str> for ImageRendering
impl Copy for ImageRendering
impl Eq for ImageRendering
impl StructuralPartialEq for ImageRendering
Auto Trait Implementations§
impl Freeze for ImageRendering
impl RefUnwindSafe for ImageRendering
impl Send for ImageRendering
impl Sync for ImageRendering
impl Unpin for ImageRendering
impl UnwindSafe for ImageRendering
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Converts the given value to a
SharedString
.