glib::translate

Trait TryFromGlib

Source
pub trait TryFromGlib<G: Copy>: Sized {
    type Error;

    // Required method
    unsafe fn try_from_glib(val: G) -> Result<Self, Self::Error>;
}
Expand description

Translate from a Glib type which can result in an undefined and/or invalid value.

Required Associated Types§

Required Methods§

Source

unsafe fn try_from_glib(val: G) -> Result<Self, Self::Error>

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.

Implementors§