Trait glib::variant::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<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 ToVariant for i16

source§

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

source§

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

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 ToVariant for f64

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 ToVariant for OsStr

source§

impl<K, V> ToVariant for BTreeMap<K, V>where K: StaticVariantType + ToVariant + Eq + Hash, V: StaticVariantType + 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 ToVariant for u16

source§

impl ToVariant for u32

source§

impl ToVariant for i64

source§

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

source§

impl ToVariant for String

source§

impl ToVariant for OsString

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 ToVariant for bool

source§

impl ToVariant for Path

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<T: StaticVariantType + ToVariant> ToVariant for [T]

source§

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

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, 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, 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<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 ToVariant for u8

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, 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> ToVariant for (T0,)where T0: ToVariant,

source§

impl<K, V> ToVariant for HashMap<K, V>where K: StaticVariantType + ToVariant + Eq + Hash, V: StaticVariantType + ToVariant,

source§

impl ToVariant for str

source§

impl ToVariant for u64

source§

impl ToVariant for i32

source§

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

source§

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

source§

impl ToVariant for PathBuf

source§

impl ToVariant for ()

Implementors§