Trait glib::translate::FromGlibPtrContainer
[−]
[src]
pub trait FromGlibPtrContainer<P: Ptr, PP: Ptr>: Sized { unsafe fn from_glib_none(ptr: PP) -> Self; unsafe fn from_glib_none_num(ptr: PP, num: usize) -> Self; unsafe fn from_glib_container(ptr: PP) -> Self; unsafe fn from_glib_container_num(ptr: PP, num: usize) -> Self; unsafe fn from_glib_full(ptr: PP) -> Self; unsafe fn from_glib_full_num(ptr: PP, num: usize) -> Self; }
Translate from a container of pointers.
Required Methods
unsafe fn from_glib_none(ptr: PP) -> Self
Transfer: none.
unsafe fn from_glib_none_num(ptr: PP, num: usize) -> Self
Transfer: none.
num
is the advised number of elements.
unsafe fn from_glib_container(ptr: PP) -> Self
Transfer: container.
unsafe fn from_glib_container_num(ptr: PP, num: usize) -> Self
Transfer: container.
num
is the advised number of elements.
unsafe fn from_glib_full(ptr: PP) -> Self
Transfer: full.
unsafe fn from_glib_full_num(ptr: PP, num: usize) -> Self
Transfer: full.
num
is the advised number of elements.
Implementors
impl<P: Ptr, T: FromGlibPtr<P>> FromGlibPtrContainer<P, *const P> for Vec<T>
impl<P: Ptr, T: FromGlibPtr<P>> FromGlibPtrContainer<P, *mut GSList> for Vec<T>
impl<P: Ptr, T: FromGlibPtr<P>> FromGlibPtrContainer<P, *mut GList> for Vec<T>
impl FromGlibPtrContainer<*const c_char, *mut GHashTable> for HashMap<String, String>