Trait glib::value::FromValueOptional [−][src]
pub trait FromValueOptional<'a>: StaticType + Sized { unsafe fn from_value_optional(_: &'a Value) -> Option<Self>; }
Extracts a value.
Types that don't support a None
value always return Some
.
Required Methods
unsafe fn from_value_optional(_: &'a Value) -> Option<Self>
Implementations on Foreign Types
impl<'a> FromValueOptional<'a> for String
[src]
impl<'a> FromValueOptional<'a> for String
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for &'a str
[src]
impl<'a> FromValueOptional<'a> for &'a str
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for Vec<String>
[src]
impl<'a> FromValueOptional<'a> for Vec<String>
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for bool
[src]
impl<'a> FromValueOptional<'a> for bool
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for i8
[src]
impl<'a> FromValueOptional<'a> for i8
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for u8
[src]
impl<'a> FromValueOptional<'a> for u8
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for i32
[src]
impl<'a> FromValueOptional<'a> for i32
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for u32
[src]
impl<'a> FromValueOptional<'a> for u32
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for i64
[src]
impl<'a> FromValueOptional<'a> for i64
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for u64
[src]
impl<'a> FromValueOptional<'a> for u64
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for f32
[src]
impl<'a> FromValueOptional<'a> for f32
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValueOptional<'a> for f64
[src]
impl<'a> FromValueOptional<'a> for f64
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
Implementors
impl<'a> FromValueOptional<'a> for IOCondition
impl<'a> FromValueOptional<'a> for BindingFlags
impl<'a> FromValueOptional<'a> for Type
impl<'a> FromValueOptional<'a> for &'a AnyValue
impl<'a> FromValueOptional<'a> for &'a AnySendValue
impl<'a> FromValueOptional<'a> for &'a VariantTy
impl<'a> FromValueOptional<'a> for VariantType