Trait glib::translate::FromGlibPtrBorrow [−][src]
pub trait FromGlibPtrBorrow<P: Ptr>: Sized { unsafe fn from_glib_borrow(_ptr: P) -> Self { ... } }
Translate from a pointer type by borrowing. Don't increase the refcount
Provided Methods
unsafe fn from_glib_borrow(_ptr: P) -> Self
Implementations on Foreign Types
impl<P: Ptr, T: FromGlibPtrBorrow<P>> FromGlibPtrBorrow<P> for Option<T>
[src]
impl<P: Ptr, T: FromGlibPtrBorrow<P>> FromGlibPtrBorrow<P> for Option<T>
unsafe fn from_glib_borrow(ptr: P) -> Option<T>
[src]
unsafe fn from_glib_borrow(ptr: P) -> Option<T>
Implementors
impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Boxed<T, MM>
impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Shared<T, MM>