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§
Source§impl VariantType
impl VariantType
Trait Implementations§
Source§impl Borrow<VariantTy> for VariantType
impl Borrow<VariantTy> for VariantType
Source§impl Clone for VariantType
impl Clone for VariantType
Source§fn clone(&self) -> VariantType
fn clone(&self) -> VariantType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VariantType
impl Debug for VariantType
Source§impl Display for VariantType
impl Display for VariantType
Source§impl Drop for VariantType
impl Drop for VariantType
Source§impl<'a> FromValueOptional<'a> for VariantType
impl<'a> FromValueOptional<'a> for VariantType
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
Source§impl Hash for VariantType
impl Hash for VariantType
Source§impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType
impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType
Source§impl<'a, 'b> PartialEq<&'a str> for VariantType
impl<'a, 'b> PartialEq<&'a str> for VariantType
Source§impl<'a, 'b> PartialEq<String> for VariantType
impl<'a, 'b> PartialEq<String> for VariantType
Source§impl<'a, 'b> PartialEq<VariantTy> for VariantType
impl<'a, 'b> PartialEq<VariantTy> for VariantType
Source§impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy
impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy
Source§impl<'a, 'b> PartialEq<VariantType> for &'a str
impl<'a, 'b> PartialEq<VariantType> for &'a str
Source§impl<'a, 'b> PartialEq<VariantType> for String
impl<'a, 'b> PartialEq<VariantType> for String
Source§impl<'a, 'b> PartialEq<VariantType> for VariantTy
impl<'a, 'b> PartialEq<VariantType> for VariantTy
Source§impl<'a, 'b> PartialEq<VariantType> for str
impl<'a, 'b> PartialEq<VariantType> for str
Source§impl<'a, 'b> PartialEq<str> for VariantType
impl<'a, 'b> PartialEq<str> for VariantType
Source§impl PartialEq for VariantType
impl PartialEq for VariantType
Source§impl SetValueOptional for VariantType
impl SetValueOptional for VariantType
unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)
Source§impl StaticType for VariantType
impl StaticType for VariantType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl Deref for VariantType
impl Deref for VariantType
impl Eq for VariantType
impl Send for VariantType
impl Sync for VariantType
Auto Trait Implementations§
impl Freeze for VariantType
impl RefUnwindSafe for VariantType
impl Unpin for VariantType
impl UnwindSafe for VariantType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.