Trait glib::translate::FromGlibContainer

source ·
pub trait FromGlibContainer<T, P: Ptr>: Sized {
    // Required methods
    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;
}
Expand description

Translate from a container.

Required Methods§

source

unsafe fn from_glib_none_num(ptr: P, num: usize) -> Self

Transfer: none.

num is the advised number of elements.

source

unsafe fn from_glib_container_num(ptr: P, num: usize) -> Self

Transfer: container.

num is the advised number of elements.

source

unsafe fn from_glib_full_num(ptr: P, num: usize) -> Self

Transfer: full.

num is the advised number of elements.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

unsafe fn from_glib_none_num(ptr: *mut GHashTable, _: usize) -> Self

source§

unsafe fn from_glib_container_num(ptr: *mut GHashTable, _: usize) -> Self

source§

unsafe fn from_glib_full_num(ptr: *mut GHashTable, _: usize) -> Self

source§

impl<P, PP: Ptr, T: FromGlibContainerAsVec<P, PP>> FromGlibContainer<P, PP> for Vec<T>

source§

unsafe fn from_glib_none_num(ptr: PP, num: usize) -> Vec<T>

source§

unsafe fn from_glib_container_num(ptr: PP, num: usize) -> Vec<T>

source§

unsafe fn from_glib_full_num(ptr: PP, num: usize) -> Vec<T>

Implementors§