Enum gfx_hal::image::Anisotropic
source · pub enum Anisotropic {
Off,
On(u8),
}
Expand description
Anisotropic filtering description for the sampler.
Variants
Off
Disable anisotropic filtering.
On(u8)
Enable anisotropic filtering with the anisotropy clamp value.
Trait Implementations
sourceimpl Clone for Anisotropic
impl Clone for Anisotropic
sourcefn clone(&self) -> Anisotropic
fn clone(&self) -> Anisotropic
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Anisotropic
impl Debug for Anisotropic
sourceimpl Hash for Anisotropic
impl Hash for Anisotropic
sourceimpl Ord for Anisotropic
impl Ord for Anisotropic
sourcefn cmp(&self, other: &Anisotropic) -> Ordering
fn cmp(&self, other: &Anisotropic) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Anisotropic> for Anisotropic
impl PartialEq<Anisotropic> for Anisotropic
sourcefn eq(&self, other: &Anisotropic) -> bool
fn eq(&self, other: &Anisotropic) -> bool
sourceimpl PartialOrd<Anisotropic> for Anisotropic
impl PartialOrd<Anisotropic> for Anisotropic
sourcefn partial_cmp(&self, other: &Anisotropic) -> Option<Ordering>
fn partial_cmp(&self, other: &Anisotropic) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Anisotropic
impl Eq for Anisotropic
impl StructuralEq for Anisotropic
impl StructuralPartialEq for Anisotropic
Auto Trait Implementations
impl RefUnwindSafe for Anisotropic
impl Send for Anisotropic
impl Sync for Anisotropic
impl Unpin for Anisotropic
impl UnwindSafe for Anisotropic
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more