pub struct FrameNativePointer<'frame> { /* private fields */ }Expand description
Borrowed opaque native address whose validity is tied to an active texture frame.
The value does not own, retain, dereference, or validate the pointed-to
object. It exists so backend pointers returned from acquired frame handles
carry the frame borrow in their Rust type instead of escaping as plain
NativePointer values.
Implementations§
Source§impl<'frame> FrameNativePointer<'frame>
impl<'frame> FrameNativePointer<'frame>
Sourcepub unsafe fn address(self) -> usize
pub unsafe fn address(self) -> usize
Returns this opaque value as an integer address.
§Safety
The returned integer no longer carries this value’s frame lifetime. The caller must use it only while the borrowed frame remains open and must satisfy the backend API’s type, synchronization, and thread-affinity requirements.
Trait Implementations§
Source§impl<'frame> Clone for FrameNativePointer<'frame>
impl<'frame> Clone for FrameNativePointer<'frame>
Source§fn clone(&self) -> FrameNativePointer<'frame>
fn clone(&self) -> FrameNativePointer<'frame>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameNativePointer<'_>
impl Debug for FrameNativePointer<'_>
Source§impl<'frame> Hash for FrameNativePointer<'frame>
impl<'frame> Hash for FrameNativePointer<'frame>
Source§impl<'frame> PartialEq for FrameNativePointer<'frame>
impl<'frame> PartialEq for FrameNativePointer<'frame>
impl<'frame> Copy for FrameNativePointer<'frame>
impl<'frame> Eq for FrameNativePointer<'frame>
impl<'frame> StructuralPartialEq for FrameNativePointer<'frame>
Auto Trait Implementations§
impl<'frame> Freeze for FrameNativePointer<'frame>
impl<'frame> RefUnwindSafe for FrameNativePointer<'frame>
impl<'frame> !Send for FrameNativePointer<'frame>
impl<'frame> !Sync for FrameNativePointer<'frame>
impl<'frame> Unpin for FrameNativePointer<'frame>
impl<'frame> UnsafeUnpin for FrameNativePointer<'frame>
impl<'frame> UnwindSafe for FrameNativePointer<'frame>
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