pub trait IntoRawPtr {
    type Lifetime;
    type Pointee: ?Sized;

    unsafe fn into_raw(self) -> *const Self::Pointee;
    unsafe fn from_raw(from: *const Self::Pointee) -> Self;
}
Expand description

Implemented for types that can be converted to and from raw painter

Required Associated Types

Contains lifetime of type if any. Required to enforce downcast pointer to have same lifetime as the input one.

Target of our pointer-like type

Required Methods

Converts to raw pointer

Reconstruct Self from raw pointer

Implementations on Foreign Types

Implementors