pub trait XidNew: Xid {
// Required method
unsafe fn new(res_id: u32) -> Self;
}
Expand description
Trait for X resources that can be created directly from Connection::generate_id
The resources that cannot be created that way are the Xid unions, which are created from their underlying resource.
Required Methods§
Object Safety§
This trait is not object safe.