[−][src]Struct glib::VariantTy
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]
pub fn new(type_string: &str) -> Result<&VariantTy, ()>
[src]
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]
Converts a type string into &VariantTy
without any checks.
pub fn to_str(&self) -> &str
[src]
Converts to a string slice.
Trait Implementations
impl Borrow<VariantTy> for VariantType
[src]
impl Debug for VariantTy
[src]
impl Display for VariantTy
[src]
impl Eq for VariantTy
[src]
impl<'a> FromValueOptional<'a> for &'a VariantTy
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
impl Hash for VariantTy
[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 &'a VariantTy
[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 VariantTy> for Cow<'b, VariantTy>
[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 VariantTy> for str
[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 VariantTy> for String
[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 VariantTy
[src]
impl<'a, 'b> PartialEq<Cow<'b, VariantTy>> for &'a VariantTy
[src]
fn eq(&self, other: &Cow<'b, VariantTy>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, 'b> PartialEq<String> for VariantTy
[src]
impl<'a, 'b> PartialEq<String> for &'a VariantTy
[src]
impl PartialEq<VariantTy> for VariantTy
[src]
impl<'a, 'b> PartialEq<VariantTy> for VariantType
[src]
impl<'a, 'b> PartialEq<VariantTy> for str
[src]
impl<'a, 'b> PartialEq<VariantTy> for &'a str
[src]
impl<'a, 'b> PartialEq<VariantTy> for String
[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<str> for VariantTy
[src]
impl<'a, 'b> PartialEq<str> for &'a VariantTy
[src]
impl SetValue for VariantTy
[src]
impl SetValueOptional for VariantTy
[src]
unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)
[src]
impl StaticType for VariantTy
[src]
fn static_type() -> Type
[src]
impl StructuralEq for VariantTy
[src]
impl StructuralPartialEq for VariantTy
[src]
impl Sync for VariantTy
[src]
impl ToOwned for VariantTy
[src]
type Owned = VariantType
The resulting type after obtaining ownership.
fn to_owned(&self) -> VariantType
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]
Auto Trait Implementations
impl RefUnwindSafe for VariantTy
impl Send for VariantTy
impl Unpin for VariantTy
impl UnwindSafe for VariantTy
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> 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,