Enum webgl_rc::TextureFilter
source · [−]#[repr(i32)]
pub enum TextureFilter {
Nearest,
Linear,
}
Variants
Nearest
Linear
Trait Implementations
sourceimpl Clone for TextureFilter
impl Clone for TextureFilter
sourcefn clone(&self) -> TextureFilter
fn clone(&self) -> TextureFilter
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 more
sourceimpl Debug for TextureFilter
impl Debug for TextureFilter
sourceimpl Default for TextureFilter
impl Default for TextureFilter
sourceimpl From<TextureFilter> for i32
impl From<TextureFilter> for i32
sourcefn from(enum_value: TextureFilter) -> Self
fn from(enum_value: TextureFilter) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TextureFilter> for TextureFilter
impl PartialEq<TextureFilter> for TextureFilter
sourcefn eq(&self, other: &TextureFilter) -> bool
fn eq(&self, other: &TextureFilter) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<i32> for TextureFilter
impl TryFrom<i32> for TextureFilter
type Error = TryFromPrimitiveError<TextureFilter>
type Error = TryFromPrimitiveError<TextureFilter>
The type returned in the event of a conversion error.
sourcefn try_from(number: i32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: i32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for TextureFilter
impl TryFromPrimitive for TextureFilter
type Primitive = i32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TextureFilter
impl Eq for TextureFilter
impl StructuralEq for TextureFilter
impl StructuralPartialEq for TextureFilter
Auto Trait Implementations
impl RefUnwindSafe for TextureFilter
impl Send for TextureFilter
impl Sync for TextureFilter
impl Unpin for TextureFilter
impl UnwindSafe for TextureFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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