#[non_exhaustive]pub enum TextureType {
_2d,
_3d,
Rectangle,
}
Expand description
Constants representing the underlying hardware texture type of a
Texture
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for TextureType
impl Clone for TextureType
Source§fn clone(&self) -> TextureType
fn clone(&self) -> TextureType
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 TextureType
impl Debug for TextureType
Source§impl Display for TextureType
impl Display for TextureType
Source§impl<'a> FromValue<'a> for TextureType
impl<'a> FromValue<'a> for TextureType
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for TextureType
impl<'a> FromValueOptional<'a> for TextureType
Source§impl Hash for TextureType
impl Hash for TextureType
Source§impl Ord for TextureType
impl Ord for TextureType
Source§fn cmp(&self, other: &TextureType) -> Ordering
fn cmp(&self, other: &TextureType) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for TextureType
impl PartialEq for TextureType
Source§impl PartialOrd for TextureType
impl PartialOrd for TextureType
Source§impl SetValue for TextureType
impl SetValue for TextureType
Source§impl StaticType for TextureType
impl StaticType for TextureType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for TextureType
impl Eq for TextureType
impl StructuralPartialEq for TextureType
Auto Trait Implementations§
impl Freeze for TextureType
impl RefUnwindSafe for TextureType
impl Send for TextureType
impl Sync for TextureType
impl Unpin for TextureType
impl UnwindSafe for TextureType
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,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.