Trait glib::translate::FromGlibPtr
source · pub trait FromGlibPtr<P: Ptr>: Sized {
// Required methods
unsafe fn from_glib_none(ptr: P) -> Self;
unsafe fn from_glib_full(ptr: P) -> Self;
// Provided method
unsafe fn from_glib_borrow(_ptr: P) -> Self { ... }
}Expand description
Translate from a pointer type.
Required Methods§
sourceunsafe fn from_glib_none(ptr: P) -> Self
unsafe fn from_glib_none(ptr: P) -> Self
Transfer: none.
sourceunsafe fn from_glib_full(ptr: P) -> Self
unsafe fn from_glib_full(ptr: P) -> Self
Transfer: full.
Provided Methods§
sourceunsafe fn from_glib_borrow(_ptr: P) -> Self
unsafe fn from_glib_borrow(_ptr: P) -> Self
Borrow. Don’t increase the refcount.
Object Safety§
This trait is not object safe.