Trait FromGlibPtrContainer

pub trait FromGlibPtrContainer<P, PP>: Sized + FromGlibContainer<P, PP>
where P: Ptr, PP: Ptr,
{ // 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§

unsafe fn from_glib_none(ptr: PP) -> Self

Transfer: none.

unsafe fn from_glib_container(ptr: PP) -> Self

Transfer: container.

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", so this trait is not object safe.

Implementations on Foreign Types§

§

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

§

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

§

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

§

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

§

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

Implementors§