Trait glib::variant::FromVariant [−][src]
pub trait FromVariant: Sized + StaticVariantType { fn from_variant(variant: &Variant) -> Option<Self>; }
Extracts a value.
Required Methods
fn from_variant(variant: &Variant) -> Option<Self>
Tries to extract a value.
Returns Some
if the variant's type matches Self
.
Implementations on Foreign Types
impl FromVariant for u8
[src]
impl FromVariant for u8
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
impl FromVariant for i16
[src]
impl FromVariant for i16
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
impl FromVariant for u16
[src]
impl FromVariant for u16
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
impl FromVariant for i32
[src]
impl FromVariant for i32
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
impl FromVariant for u32
[src]
impl FromVariant for u32
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
impl FromVariant for i64
[src]
impl FromVariant for i64
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
impl FromVariant for u64
[src]
impl FromVariant for u64
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
impl FromVariant for f64
[src]
impl FromVariant for f64
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
impl FromVariant for bool
[src]
impl FromVariant for bool
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
impl FromVariant for String
[src]
impl FromVariant for String
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>