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§
Sourceunsafe fn from_glib_none_num(ptr: P, num: usize) -> Self
unsafe fn from_glib_none_num(ptr: P, num: usize) -> Self
Transfer: none.
num
is the advised number of elements.
Sourceunsafe fn from_glib_container_num(ptr: P, num: usize) -> Self
unsafe fn from_glib_container_num(ptr: P, num: usize) -> Self
Transfer: container.
num
is the advised number of elements.
Sourceunsafe fn from_glib_full_num(ptr: P, num: usize) -> Self
unsafe fn from_glib_full_num(ptr: P, num: usize) -> Self
Transfer: full.
num
is the advised number of elements.
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.