pub enum ImageSampling {
Nearest,
Linear,
}Expand description
Texture sampling mode for image primitives.
Variants§
Nearest
Preserve source texels exactly. Use this for atlases, pixel art, and UI skins.
Linear
Interpolate adjacent texels. Use this for photographic or continuously scaled images.
Trait Implementations§
Source§impl Clone for ImageSampling
impl Clone for ImageSampling
Source§fn clone(&self) -> ImageSampling
fn clone(&self) -> ImageSampling
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 Debug for ImageSampling
impl Debug for ImageSampling
Source§impl Default for ImageSampling
impl Default for ImageSampling
Source§fn default() -> ImageSampling
fn default() -> ImageSampling
Returns the “default value” for a type. Read more
Source§impl Hash for ImageSampling
impl Hash for ImageSampling
Source§impl PartialEq for ImageSampling
impl PartialEq for ImageSampling
impl Copy for ImageSampling
impl Eq for ImageSampling
impl StructuralPartialEq for ImageSampling
Auto Trait Implementations§
impl Freeze for ImageSampling
impl RefUnwindSafe for ImageSampling
impl Send for ImageSampling
impl Sync for ImageSampling
impl Unpin for ImageSampling
impl UnsafeUnpin for ImageSampling
impl UnwindSafe for ImageSampling
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