Skip to main content

MemoryHandle

Trait MemoryHandle 

Source
pub trait MemoryHandle: Sized {
    // Required methods
    fn from_ptr(ptr: NonNull<c_void>) -> Self;
    fn as_ptr(&self) -> NonNull<c_void>;
}

Required Methods§

Source

fn from_ptr(ptr: NonNull<c_void>) -> Self

Source

fn as_ptr(&self) -> NonNull<c_void>

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.

Implementors§