pub trait TryFromGlib<G>: Sizedwhere
    G: Copy,{
    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§

type Error

Required Methods§

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

Implementations on Foreign Types§

§

impl TryFromGlib<u64> for CancelledHandlerId

§

type Error = GlibNoneError

§

unsafe fn try_from_glib(val: u64) -> Result<CancelledHandlerId, GlibNoneError>

Implementors§