Trait glib::translate::FromGlibContainer [−][src]
pub trait FromGlibContainer<T, P: Ptr>: Sized { unsafe fn from_glib_none_num(ptr: P, num: usize) -> Self; unsafe fn from_glib_container_num(ptr: P, num: usize) -> Self; unsafe fn from_glib_full_num(ptr: P, num: usize) -> Self; }
Translate from a container.
Required Methods
unsafe fn from_glib_none_num(ptr: P, num: usize) -> Self
Transfer: none.
num
is the advised number of elements.
unsafe fn from_glib_container_num(ptr: P, num: usize) -> Self
Transfer: container.
num
is the advised number of elements.
unsafe fn from_glib_full_num(ptr: P, num: usize) -> Self
Transfer: full.
num
is the advised number of elements.
Implementations on Foreign Types
impl<P, PP: Ptr, T: FromGlibContainerAsVec<P, PP>> FromGlibContainer<P, PP> for Vec<T>
[src]
impl<P, PP: Ptr, T: FromGlibContainerAsVec<P, PP>> FromGlibContainer<P, PP> for Vec<T>
impl FromGlibContainer<*const c_char, *mut GHashTable> for HashMap<String, String>
[src]
impl FromGlibContainer<*const c_char, *mut GHashTable> for HashMap<String, String>
unsafe fn from_glib_none_num(ptr: *mut GHashTable, _: usize) -> Self
[src]
unsafe fn from_glib_none_num(ptr: *mut GHashTable, _: usize) -> Self
unsafe fn from_glib_container_num(ptr: *mut GHashTable, _: usize) -> Self
[src]
unsafe fn from_glib_container_num(ptr: *mut GHashTable, _: usize) -> Self
unsafe fn from_glib_full_num(ptr: *mut GHashTable, _: usize) -> Self
[src]
unsafe fn from_glib_full_num(ptr: *mut GHashTable, _: usize) -> Self