pub trait AsRaw { type Type; // Required method unsafe fn as_raw(&self) -> *mut Self::Type; }
This method ia actually safe. Unsafety is because so we’re removing owners lifetime that used by some API parts.