glib::translate

Function try_from_glib

Source
pub unsafe fn try_from_glib<G: Copy, T: TryFromGlib<G>>(
    val: G,
) -> Result<T, <T as TryFromGlib<G>>::Error>
Expand description

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