Struct glib::VariantTy [−][src]
pub struct VariantTy { /* fields omitted */ }Describes Variant types.
This is a borrowed counterpart of VariantType.
Essentially it's a str statically guaranteed to be a valid type string.
Methods
impl VariantTy[src]
impl VariantTypub fn new(type_string: &str) -> Result<&VariantTy, ()>[src]
pub fn new(type_string: &str) -> Result<&VariantTy, ()>Tries to create a &VariantTy from a string slice.
Returns Ok if the string is a valid type string, Err otherwise.
pub unsafe fn from_str_unchecked(type_string: &str) -> &VariantTy[src]
pub unsafe fn from_str_unchecked(type_string: &str) -> &VariantTyConverts a type string into &VariantTy without any checks.
pub fn to_str(&self) -> &str[src]
pub fn to_str(&self) -> &strConverts to a string slice.
Trait Implementations
impl Borrow<VariantTy> for VariantType[src]
impl Borrow<VariantTy> for VariantTypeimpl Debug for VariantTy[src]
impl Debug for VariantTyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for VariantTy[src]
impl PartialEq for VariantTyfn eq(&self, other: &VariantTy) -> bool[src]
fn eq(&self, other: &VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &VariantTy) -> bool[src]
fn ne(&self, other: &VariantTy) -> boolThis method tests for !=.
impl Eq for VariantTy[src]
impl Eq for VariantTyimpl Hash for VariantTy[src]
impl Hash for VariantTyfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Sync for VariantTy[src]
impl Sync for VariantTyimpl Display for VariantTy[src]
impl Display for VariantTyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> Into<Cow<'a, VariantTy>> for &'a VariantTy[src]
impl<'a> Into<Cow<'a, VariantTy>> for &'a VariantTyimpl ToOwned for VariantTy[src]
impl ToOwned for VariantTytype Owned = VariantType
fn to_owned(&self) -> VariantType[src]
fn to_owned(&self) -> VariantTypeCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)[src]
fn clone_into(&self, target: &mut Self::Owned)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl StaticType for VariantTy[src]
impl StaticType for VariantTyfn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl SetValue for VariantTy[src]
impl SetValue for VariantTyimpl SetValueOptional for VariantTy[src]
impl SetValueOptional for VariantTyunsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)[src]
unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)impl<'a> FromValueOptional<'a> for &'a VariantTy[src]
impl<'a> FromValueOptional<'a> for &'a VariantTyunsafe fn from_value_optional(value: &'a Value) -> Option<Self>[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>impl<'a, 'b> PartialEq<VariantTy> for VariantType[src]
impl<'a, 'b> PartialEq<VariantTy> for VariantTypefn eq(&self, other: &VariantTy) -> bool[src]
fn eq(&self, other: &VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantType> for VariantTy[src]
impl<'a, 'b> PartialEq<VariantType> for VariantTyfn eq(&self, other: &VariantType) -> bool[src]
fn eq(&self, other: &VariantType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType[src]
impl<'a, 'b> PartialEq<&'a VariantTy> for VariantTypefn eq(&self, other: &&'a VariantTy) -> bool[src]
fn eq(&self, other: &&'a VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy[src]
impl<'a, 'b> PartialEq<VariantType> for &'a VariantTyfn eq(&self, other: &VariantType) -> bool[src]
fn eq(&self, other: &VariantType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Cow<'b, VariantTy>> for &'a VariantTy[src]
impl<'a, 'b> PartialEq<Cow<'b, VariantTy>> for &'a VariantTyfn eq(&self, other: &Cow<'b, VariantTy>) -> bool[src]
fn eq(&self, other: &Cow<'b, VariantTy>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a VariantTy> for Cow<'b, VariantTy>[src]
impl<'a, 'b> PartialEq<&'a VariantTy> for Cow<'b, VariantTy>fn eq(&self, other: &&'a VariantTy) -> bool[src]
fn eq(&self, other: &&'a VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<str> for VariantTy[src]
impl<'a, 'b> PartialEq<str> for VariantTyfn eq(&self, other: &str) -> bool[src]
fn eq(&self, other: &str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantTy> for str[src]
impl<'a, 'b> PartialEq<VariantTy> for strfn eq(&self, other: &VariantTy) -> bool[src]
fn eq(&self, other: &VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a str> for VariantTy[src]
impl<'a, 'b> PartialEq<&'a str> for VariantTyfn eq(&self, other: &&'a str) -> bool[src]
fn eq(&self, other: &&'a str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantTy> for &'a str[src]
impl<'a, 'b> PartialEq<VariantTy> for &'a strfn eq(&self, other: &VariantTy) -> bool[src]
fn eq(&self, other: &VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<str> for &'a VariantTy[src]
impl<'a, 'b> PartialEq<str> for &'a VariantTyfn eq(&self, other: &str) -> bool[src]
fn eq(&self, other: &str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a VariantTy> for str[src]
impl<'a, 'b> PartialEq<&'a VariantTy> for strfn eq(&self, other: &&'a VariantTy) -> bool[src]
fn eq(&self, other: &&'a VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<String> for VariantTy[src]
impl<'a, 'b> PartialEq<String> for VariantTyfn eq(&self, other: &String) -> bool[src]
fn eq(&self, other: &String) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<VariantTy> for String[src]
impl<'a, 'b> PartialEq<VariantTy> for Stringfn eq(&self, other: &VariantTy) -> bool[src]
fn eq(&self, other: &VariantTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<String> for &'a VariantTy[src]
impl<'a, 'b> PartialEq<String> for &'a VariantTyfn eq(&self, other: &String) -> bool[src]
fn eq(&self, other: &String) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a VariantTy> for String[src]
impl<'a, 'b> PartialEq<&'a VariantTy> for String