Trait FromGlibPtrBorrow

Source
pub trait FromGlibPtrBorrow<P: Ptr>: Sized {
    // Provided method
    unsafe fn from_glib_borrow(_ptr: P) -> Self { ... }
}
Expand description

Translate from a pointer type by borrowing. Don’t increase the refcount

Provided Methods§

Source

unsafe fn from_glib_borrow(_ptr: P) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<P: Ptr, T: FromGlibPtrBorrow<P>> FromGlibPtrBorrow<P> for Option<T>

Source§

unsafe fn from_glib_borrow(ptr: P) -> Option<T>

Implementors§

Source§

impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Boxed<T, MM>

Source§

impl<T: 'static, MM: SharedMemoryManager<T>> FromGlibPtrBorrow<*mut T> for Shared<T, MM>