#[non_exhaustive]#[repr(u32)]pub enum ResourceGenericType {
Unknown = 0,
GenericPointer = 65_537,
GenericHandle = 65_538,
GenericThreadNative = 65_539,
GenericThreadPosix = 65_540,
}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.
Unknown = 0
GenericPointer = 65_537
GenericHandle = 65_538
GenericThreadNative = 65_539
GenericThreadPosix = 65_540
Trait Implementations§
Source§impl Clone for ResourceGenericType
impl Clone for ResourceGenericType
Source§fn clone(&self) -> ResourceGenericType
fn clone(&self) -> ResourceGenericType
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 ResourceGenericType
Source§impl Debug for ResourceGenericType
impl Debug for ResourceGenericType
Source§impl Display for ResourceGenericType
impl Display for ResourceGenericType
impl Eq for ResourceGenericType
Source§impl From<ResourceGenericType> for u32
impl From<ResourceGenericType> for u32
Source§fn from(enum_value: ResourceGenericType) -> Self
fn from(enum_value: ResourceGenericType) -> Self
Converts to this type from the input type.
Source§impl From<ResourceGenericType> for nvtxResourceGenericType_t
impl From<ResourceGenericType> for nvtxResourceGenericType_t
Source§fn from(value: ResourceGenericType) -> Self
fn from(value: ResourceGenericType) -> Self
Converts to this type from the input type.
Source§impl From<nvtxResourceGenericType_t> for ResourceGenericType
impl From<nvtxResourceGenericType_t> for ResourceGenericType
Source§fn from(value: nvtxResourceGenericType_t) -> Self
fn from(value: nvtxResourceGenericType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for ResourceGenericType
impl Hash for ResourceGenericType
Source§impl PartialEq for ResourceGenericType
impl PartialEq for ResourceGenericType
Source§fn eq(&self, other: &ResourceGenericType) -> bool
fn eq(&self, other: &ResourceGenericType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceGenericType
Source§impl TryFrom<u32> for ResourceGenericType
impl TryFrom<u32> for ResourceGenericType
Source§type Error = TryFromPrimitiveError<ResourceGenericType>
type Error = TryFromPrimitiveError<ResourceGenericType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ResourceGenericType
impl TryFromPrimitive for ResourceGenericType
const NAME: &'static str = "ResourceGenericType"
type Primitive = u32
type Error = TryFromPrimitiveError<ResourceGenericType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ResourceGenericType
impl RefUnwindSafe for ResourceGenericType
impl Send for ResourceGenericType
impl Sync for ResourceGenericType
impl Unpin for ResourceGenericType
impl UnsafeUnpin for ResourceGenericType
impl UnwindSafe for ResourceGenericType
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