pub trait Xid {
// Required methods
fn none() -> Self;
fn resource_id(&self) -> u32;
// Provided method
fn is_none(&self) -> bool { ... }
}Expand description
A X resource trait
Required Methods§
Sourcefn resource_id(&self) -> u32
fn resource_id(&self) -> u32
Get the underlying id of the resource
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.