Skip to main content

FromGlibPtrContainer

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§