Trait FromGlib

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

Translate a simple type.

Required Methods§

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§

§

impl FromGlib<i32> for Ordering

§

unsafe fn from_glib(val: i32) -> Ordering

§

impl FromGlib<i32> for bool

§

unsafe fn from_glib(val: i32) -> bool

§

impl FromGlib<u32> for Key

§

unsafe fn from_glib(value: u32) -> Key

§

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

§

unsafe fn from_glib(val: G) -> Result<Option<T>, I>

§

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

§

unsafe fn from_glib(val: G) -> Option<T>

Implementors§