pub trait Handle:
Copy
+ Clone
+ Debug
+ PartialEq
+ Eq
+ Hash
+ Default
+ Sized {
type Repr;
const TYPE: ObjectType;
// Required methods
fn null() -> Self;
fn from_raw(value: Self::Repr) -> Self;
fn as_raw(self) -> Self::Repr;
fn is_null(self) -> bool;
}Expand description
A Vulkan handle type.
Required Associated Constants§
Sourceconst TYPE: ObjectType
const TYPE: ObjectType
The object type for this handle type.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.