pub trait Handle: Sized {
const TYPE: ObjectType;
// Required methods
fn as_raw(self) -> u64;
fn from_raw(_: u64) -> Self;
// Provided method
fn is_null(self) -> bool { ... }
}
Required Associated Constants§
const TYPE: ObjectType
Required Methods§
Provided 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.