Trait glib::translate::FromGlibPtrContainer

source ·
pub trait FromGlibPtrContainer<P: Ptr, PP: Ptr>: FromGlibContainer<P, PP> + Sized {
    // Required methods
    unsafe fn from_glib_none(ptr: PP) -> Self;
    unsafe fn from_glib_container(ptr: PP) -> Self;
    unsafe fn from_glib_full(ptr: PP) -> Self;
}
Expand description

Translate from a container of pointers.

Required Methods§

source

unsafe fn from_glib_none(ptr: PP) -> Self

Transfer: none.

source

unsafe fn from_glib_container(ptr: PP) -> Self

Transfer: container.

source

unsafe fn from_glib_full(ptr: PP) -> Self

Transfer: full.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromGlibPtrContainer<*const i8, *mut GHashTable> for HashMap<String, String>

source§

unsafe fn from_glib_none(ptr: *mut GHashTable) -> Self

source§

unsafe fn from_glib_container(ptr: *mut GHashTable) -> Self

source§

unsafe fn from_glib_full(ptr: *mut GHashTable) -> Self

source§

impl<P: Ptr, PP: Ptr, T: FromGlibPtrArrayContainerAsVec<P, PP>> FromGlibPtrContainer<P, PP> for Vec<T>

source§

unsafe fn from_glib_none(ptr: PP) -> Vec<T>

source§

unsafe fn from_glib_container(ptr: PP) -> Vec<T>

source§

unsafe fn from_glib_full(ptr: PP) -> Vec<T>

Implementors§