#[non_exhaustive]#[repr(u32)]pub enum ResourceType {
Array = 0,
MipmappedArray = 1,
Linear = 2,
Pitch2d = 3,
}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 ResourceType
impl Clone for ResourceType
Source§fn clone(&self) -> ResourceType
fn clone(&self) -> ResourceType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceType
Source§impl Debug for ResourceType
impl Debug for ResourceType
Source§impl Display for ResourceType
impl Display for ResourceType
impl Eq for ResourceType
Source§impl From<CUresourcetype_enum> for ResourceType
impl From<CUresourcetype_enum> for ResourceType
Source§fn from(value: CUresourcetype) -> Self
fn from(value: CUresourcetype) -> Self
Converts to this type from the input type.
Source§impl From<ResourceType> for u32
impl From<ResourceType> for u32
Source§fn from(enum_value: ResourceType) -> Self
fn from(enum_value: ResourceType) -> Self
Converts to this type from the input type.
Source§impl From<ResourceType> for CUresourcetype
impl From<ResourceType> for CUresourcetype
Source§fn from(value: ResourceType) -> Self
fn from(value: ResourceType) -> Self
Converts to this type from the input type.
Source§impl Hash for ResourceType
impl Hash for ResourceType
Source§impl PartialEq for ResourceType
impl PartialEq for ResourceType
Source§fn eq(&self, other: &ResourceType) -> bool
fn eq(&self, other: &ResourceType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceType
Source§impl TryFrom<u32> for ResourceType
impl TryFrom<u32> for ResourceType
Source§type Error = TryFromPrimitiveError<ResourceType>
type Error = TryFromPrimitiveError<ResourceType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ResourceType
impl TryFromPrimitive for ResourceType
const NAME: &'static str = "ResourceType"
type Primitive = u32
type Error = TryFromPrimitiveError<ResourceType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ResourceType
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnsafeUnpin for ResourceType
impl UnwindSafe for ResourceType
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