glib::translate

Trait 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

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.

Implementations on Foreign Types§

Source§

impl FromGlib<i32> for Ordering

Source§

unsafe fn from_glib(val: i32) -> Self

Source§

impl FromGlib<i32> for bool

Source§

unsafe fn from_glib(val: gboolean) -> Self

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<G: Copy, T: TryFromGlib<G, Error = GlibNoneError>> FromGlib<G> for Option<T>

Source§

unsafe fn from_glib(val: G) -> Self

Implementors§