Trait glib::translate::FromGlib

source ·
pub trait FromGlib<G: Copy>: Sized {
    // Required method
    unsafe fn from_glib(val: G) -> Self;
}
Expand description

Translate a simple type.

Required Methods§

source

unsafe fn from_glib(val: G) -> Self

Implementations on Foreign Types§

source§

impl<G: Copy, I: Error, T: TryFromGlib<G, Error = GlibNoneOrInvalidError<I>>> FromGlib<G> for Result<Option<T>, I>

source§

unsafe fn from_glib(val: G) -> Self

source§

impl FromGlib<i32> for bool

source§

unsafe fn from_glib(val: gboolean) -> Self

source§

impl FromGlib<i32> for Ordering

source§

unsafe fn from_glib(val: i32) -> Self

source§

impl<G: Copy, T: TryFromGlib<G, Error = GlibNoneError>> FromGlib<G> for Option<T>

source§

unsafe fn from_glib(val: G) -> Self

Implementors§