pub struct NativeHandle(/* private fields */);Expand description
Opaque non-null native pointer / HANDLE bits.
Backs every “raw platform handle” field in GpuBufferHandle and
GpuDeviceHandle (and the gpu_device config field in
mediaway-encoder/mediaway-decoder/mediaway-device). Never dereferenced
in this crate — platform backends cast NativeHandle::get to/from the
real pointer type. Backed by NonZeroUsize so “unset” is
Option<NativeHandle>::None instead of a 0 sentinel repeated in doc
comments; the niche keeps Option<NativeHandle> the same size as usize.
Implementations§
Trait Implementations§
Source§impl Clone for NativeHandle
impl Clone for NativeHandle
Source§fn clone(&self) -> NativeHandle
fn clone(&self) -> NativeHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NativeHandle
Source§impl Debug for NativeHandle
impl Debug for NativeHandle
impl Eq for NativeHandle
Source§impl Hash for NativeHandle
impl Hash for NativeHandle
Source§impl PartialEq for NativeHandle
impl PartialEq for NativeHandle
impl StructuralPartialEq for NativeHandle
Auto Trait Implementations§
impl Freeze for NativeHandle
impl RefUnwindSafe for NativeHandle
impl Send for NativeHandle
impl Sync for NativeHandle
impl Unpin for NativeHandle
impl UnsafeUnpin for NativeHandle
impl UnwindSafe for NativeHandle
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