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.
pub unsafe fn try_from_glib<G: Copy, T: TryFromGlib<G>>(
val: G,
) -> Result<T, <T as TryFromGlib<G>>::Error>
Translate from a Glib type which can result in an undefined and/or invalid value.