pub trait AsPtr { type Pointer; // Required method 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.
self
fn
unsafe