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: FromGlibPtrNone<P> + FromGlibPtrFull<P>> FromGlibPtrContainer<P, *const P> for Vec<T>
impl<P: Ptr, T: FromGlibPtrNone<P> + FromGlibPtrFull<P>> FromGlibPtrContainer<P, *mut P> for Vec<T>
impl<T> FromGlibPtrContainer<<T as GlibPtrDefault>::GlibType, *mut GSList> for Vec<T> where
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,impl<T> FromGlibPtrContainer<<T as GlibPtrDefault>::GlibType, *mut GList> for Vec<T> where
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,impl<T> FromGlibPtrContainer<<T as GlibPtrDefault>::GlibType, *const GList> for Vec<T> where
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,impl FromGlibPtrContainer<*const c_char, *mut GHashTable> for HashMap<String, String>