Struct glib::VariantType
source · [−]pub struct VariantType { /* private fields */ }Expand description
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).
Implementations
sourceimpl VariantType
impl VariantType
Methods from Deref<Target = VariantTy>
Trait Implementations
sourceimpl Borrow<VariantTy> for VariantType
impl Borrow<VariantTy> for VariantType
sourceimpl Clone for VariantType
impl Clone for VariantType
sourcefn clone(&self) -> VariantType
fn clone(&self) -> VariantType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for VariantType
impl Debug for VariantType
sourceimpl Deref for VariantType
impl Deref for VariantType
sourceimpl Display for VariantType
impl Display for VariantType
sourceimpl Drop for VariantType
impl Drop for VariantType
sourceimpl<'a> FromValueOptional<'a> for VariantType
impl<'a> FromValueOptional<'a> for VariantType
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
sourceimpl Hash for VariantType
impl Hash for VariantType
sourceimpl<'a> Into<Cow<'a, VariantTy>> for VariantType
impl<'a> Into<Cow<'a, VariantTy>> for VariantType
sourceimpl<'a, 'b> PartialEq<&'a VariantTy> for VariantType
impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType
sourceimpl<'a, 'b> PartialEq<Cow<'a, VariantTy>> for VariantType
impl<'a, 'b> PartialEq<Cow<'a, VariantTy>> for VariantType
sourceimpl<'a, 'b> PartialEq<VariantTy> for VariantType
impl<'a, 'b> PartialEq<VariantTy> for VariantType
sourceimpl<'a, 'b> PartialEq<VariantType> for &'a VariantTy
impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy
sourcefn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> bool
sourceimpl<'a, 'b> PartialEq<VariantType> for &'a str
impl<'a, 'b> PartialEq<VariantType> for &'a str
sourcefn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> bool
sourceimpl<'a, 'b> PartialEq<VariantType> for Cow<'a, VariantTy>
impl<'a, 'b> PartialEq<VariantType> for Cow<'a, VariantTy>
sourcefn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> bool
sourceimpl<'a, 'b> PartialEq<VariantType> for String
impl<'a, 'b> PartialEq<VariantType> for String
sourcefn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> bool
sourceimpl<'a, 'b> PartialEq<VariantType> for VariantTy
impl<'a, 'b> PartialEq<VariantType> for VariantTy
sourcefn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> bool
sourceimpl PartialEq<VariantType> for VariantType
impl PartialEq<VariantType> for VariantType
sourceimpl<'a, 'b> PartialEq<VariantType> for str
impl<'a, 'b> PartialEq<VariantType> for str
sourcefn eq(&self, other: &VariantType) -> bool
fn eq(&self, other: &VariantType) -> bool
sourceimpl SetValueOptional for VariantType
impl SetValueOptional for VariantType
unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)
sourceimpl StaticType for VariantType
impl StaticType for VariantType
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for VariantType
impl Send for VariantType
impl Sync for VariantType
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.