pub struct Handle(/* private fields */);
Expand description
A handle to a GEM buffer
§Notes
There are no guarantees that this handle is valid. It is up to the user to make sure this handle does not outlive the underlying buffer, and to prevent buffers from leaking by properly closing them after they are done.
Trait Implementations§
source§impl From<Handle> for RawResourceHandle
impl From<Handle> for RawResourceHandle
source§impl From<NonZero<u32>> for Handle
impl From<NonZero<u32>> for Handle
source§fn from(handle: RawResourceHandle) -> Self
fn from(handle: RawResourceHandle) -> Self
Converts to this type from the input type.
impl Copy for Handle
impl Eq for Handle
impl PodInOption for Handle
impl StructuralPartialEq for Handle
impl ZeroableInOption for Handle
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)