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

Implementations on Foreign Types

impl<'a> FromValueOptional<'a> for String
[src]

[src]

impl<'a> FromValueOptional<'a> for &'a str
[src]

[src]

impl<'a> FromValueOptional<'a> for bool
[src]

[src]

impl<'a> FromValueOptional<'a> for i8
[src]

[src]

impl<'a> FromValueOptional<'a> for u8
[src]

[src]

impl<'a> FromValueOptional<'a> for i32
[src]

[src]

impl<'a> FromValueOptional<'a> for u32
[src]

[src]

impl<'a> FromValueOptional<'a> for i64
[src]

[src]

impl<'a> FromValueOptional<'a> for u64
[src]

[src]

impl<'a> FromValueOptional<'a> for f32
[src]

[src]

impl<'a> FromValueOptional<'a> for f64
[src]

[src]

Implementors