Trait glib::value::FromValueOptional
source · pub trait FromValueOptional<'a>: StaticType + Sized {
unsafe fn from_value_optional(_: &'a Value) -> Option<Self>;
}
Expand description
Extracts a value.
Types that don’t support a None
value always return Some
.