[−][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]
fn clone(&self) -> VariantType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
impl Hash for VariantType
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> Into<Cow<'a, VariantTy>> for VariantType
[src]
impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType
[src]
fn eq(&self, other: &&'a VariantTy) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialEq<&'a str> for VariantType
[src]
impl<'a, 'b> PartialEq<Cow<'a, VariantTy>> for VariantType
[src]
fn eq(&self, other: &Cow<'a, VariantTy>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
fn eq(&self, other: &VariantType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy
[src]
fn eq(&self, other: &VariantType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialEq<VariantType> for Cow<'a, VariantTy>
[src]
fn eq(&self, other: &VariantType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialEq<VariantType> for str
[src]
fn eq(&self, other: &VariantType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialEq<VariantType> for &'a str
[src]
fn eq(&self, other: &VariantType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialEq<VariantType> for String
[src]
fn eq(&self, other: &VariantType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialEq<str> for VariantType
[src]
impl Send for VariantType
[src]
impl SetValue for VariantType
[src]
impl SetValueOptional for VariantType
[src]
unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)
[src]
impl StaticType for VariantType
[src]
fn static_type() -> Type
[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,
fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&Self) -> SendValue
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,