Trait AsPtr

Source
pub trait AsPtr {
    type Pointer;

    // Required method
    unsafe fn as_ptr(&self) -> Self::Pointer;
}

Required Associated Types§

Required Methods§

Source

unsafe fn as_ptr(&self) -> Self::Pointer

This pointer may point to data which is tied to self’s lifetime. However, this pointer may be a (safe) fn pointer, which is callable without any unsafe. Thus this function is unsafe.

Implementors§