Trait glib::translate::FromGlibPtr
[−]
[src]
pub trait FromGlibPtr<P: Ptr>: Sized { unsafe fn from_glib_none(ptr: P) -> Self; unsafe fn from_glib_full(ptr: P) -> Self; }
Translate from a pointer type.
Required Methods
unsafe fn from_glib_none(ptr: P) -> Self
Transfer: none.
unsafe fn from_glib_full(ptr: P) -> Self
Transfer: full.
Implementors
impl<P: Ptr, T: FromGlibPtr<P>> FromGlibPtr<P> for Option<T>
impl FromGlibPtr<*const c_char> for String
impl FromGlibPtr<*mut c_char> for String