[−][src]Struct glib::VariantType
Describes Variant
types.
The Variant
type system (based on the D-Bus one) describes types with
"type strings". VariantType
is an owned immutable type string (you can
think of it as a Box<str>
statically guaranteed to be a valid type
string), &VariantTy
is a borrowed one (like &str
).
Methods
impl VariantType
[src][−]
pub fn new(type_string: &str) -> Result<VariantType, ()>
[src][−]
Tries to create a VariantType
from a string slice.
Returns Ok
if the string is a valid type string, Err
otherwise.
Methods from Deref<Target = VariantTy>
Trait Implementations
impl Borrow<VariantTy> for VariantType
[src][+]
impl Clone for VariantType
[src][+]
impl Debug for VariantType
[src][+]
impl Deref for VariantType
[src][+]
impl Display for VariantType
[src][+]
impl Drop for VariantType
[src][+]
impl Eq for VariantType
[src]
impl<'a> FromValueOptional<'a> for VariantType
[src][+]
impl Hash for VariantType
[src][+]
impl<'a> Into<Cow<'a, VariantTy>> for VariantType
[src][+]
impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType
[src][+]
impl<'a, 'b> PartialEq<&'a str> for VariantType
[src][+]
impl<'a, 'b> PartialEq<Cow<'a, VariantTy>> for VariantType
[src][+]
impl<'a, 'b> PartialEq<String> for VariantType
[src][+]
impl<'a, 'b> PartialEq<VariantTy> for VariantType
[src][+]
impl PartialEq<VariantType> for VariantType
[src][+]
impl<'a, 'b> PartialEq<VariantType> for VariantTy
[src][+]
impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy
[src][+]
impl<'a, 'b> PartialEq<VariantType> for Cow<'a, VariantTy>
[src][+]
impl<'a, 'b> PartialEq<VariantType> for str
[src][+]
impl<'a, 'b> PartialEq<VariantType> for &'a str
[src][+]
impl<'a, 'b> PartialEq<VariantType> for String
[src][+]
impl<'a, 'b> PartialEq<str> for VariantType
[src][+]
impl Send for VariantType
[src]
impl SetValue for VariantType
[src][+]
impl SetValueOptional for VariantType
[src][+]
impl StaticType for VariantType
[src][+]
impl Sync for VariantType
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,