glib::variant

Trait ToVariant

Source
pub trait ToVariant {
    // Required method
    fn to_variant(&self) -> Variant;
}
Expand description

Converts to Variant.

Required Methods§

Source

fn to_variant(&self) -> Variant

Returns a Variant clone of self.

Implementations on Foreign Types§

Source§

impl ToVariant for bool

Source§

impl ToVariant for f64

Source§

impl ToVariant for i16

Source§

impl ToVariant for i32

Source§

impl ToVariant for i64

Source§

impl ToVariant for str

Source§

impl ToVariant for u8

Source§

impl ToVariant for u16

Source§

impl ToVariant for u32

Source§

impl ToVariant for u64

Source§

impl ToVariant for ()

Source§

impl ToVariant for String

Source§

impl ToVariant for OsStr

Source§

impl ToVariant for OsString

Source§

impl ToVariant for Path

Source§

impl ToVariant for PathBuf

Source§

impl<'a, T: ?Sized + ToVariant> ToVariant for &'a T

Source§

impl<K, V> ToVariant for BTreeMap<K, V>

Source§

impl<K, V> ToVariant for HashMap<K, V>

Source§

impl<T0> ToVariant for (T0,)
where T0: ToVariant,

Source§

impl<T0, T1> ToVariant for (T0, T1)
where T0: ToVariant, T1: ToVariant,

Source§

impl<T0, T1, T2> ToVariant for (T0, T1, T2)
where T0: ToVariant, T1: ToVariant, T2: ToVariant,

Source§

impl<T0, T1, T2, T3> ToVariant for (T0, T1, T2, T3)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant,

Source§

impl<T0, T1, T2, T3, T4> ToVariant for (T0, T1, T2, T3, T4)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5> ToVariant for (T0, T1, T2, T3, T4, T5)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6> ToVariant for (T0, T1, T2, T3, T4, T5, T6)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant, T7: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant, T7: ToVariant, T8: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant, T7: ToVariant, T8: ToVariant, T9: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant, T7: ToVariant, T8: ToVariant, T9: ToVariant, T10: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant, T7: ToVariant, T8: ToVariant, T9: ToVariant, T10: ToVariant, T11: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant, T7: ToVariant, T8: ToVariant, T9: ToVariant, T10: ToVariant, T11: ToVariant, T12: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant, T7: ToVariant, T8: ToVariant, T9: ToVariant, T10: ToVariant, T11: ToVariant, T12: ToVariant, T13: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant, T7: ToVariant, T8: ToVariant, T9: ToVariant, T10: ToVariant, T11: ToVariant, T12: ToVariant, T13: ToVariant, T14: ToVariant,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, T6: ToVariant, T7: ToVariant, T8: ToVariant, T9: ToVariant, T10: ToVariant, T11: ToVariant, T12: ToVariant, T13: ToVariant, T14: ToVariant, T15: ToVariant,

Source§

impl<T: StaticVariantType + ToVariant> ToVariant for Option<T>

Source§

impl<T: StaticVariantType + ToVariant> ToVariant for [T]

Source§

impl<T: StaticVariantType + ToVariant> ToVariant for Vec<T>

Implementors§