[−][src]Enum glib::types::Type
pub enum Type { Invalid, Unit, I8, U8, Bool, I32, U32, ILong, ULong, I64, U64, F32, F64, String, Pointer, Variant, BaseInterface, BaseEnum, BaseFlags, BaseBoxed, BaseParamSpec, BaseObject, Other(usize), }
A GLib or GLib-based library type
Variants
An invalid Type
used as error return value in some functions
The fundamental type corresponding to the unit type ()
The fundamental type corresponding to i8
The fundamental type corresponding to u8
The fundamental type corresponding to bool
The fundamental type corresponding to i32
The fundamental type corresponding to u32
The fundamental type corresponding to C long
The fundamental type corresponding to C unsigned long
The fundamental type corresponding to i64
The fundamental type corresponding to u64
The fundamental type corresponding to f32
The fundamental type corresponding to f64
The fundamental type corresponding to String
The fundamental type corresponding to a pointer
The fundamental type of GVariant
The fundamental type from which all interfaces are derived
The fundamental type from which all enumeration types are derived
The fundamental type from which all flags types are derived
The fundamental type from which all boxed types are derived
The fundamental type from which all GParamSpec
types are derived
The fundamental type from which all objects are derived
Other(usize)
A non-fundamental type identified by value of type usize
Methods
impl Type
[src][−]
pub fn name(&self) -> String
[src]
pub fn qname(&self) -> Quark
[src]
pub fn is_a(&self, other: &Type) -> bool
[src]
pub fn parent(&self) -> Option<Self>
[src]
pub fn children(&self) -> Vec<Self>
[src]
pub fn interfaces(&self) -> Vec<Self>
[src]
pub fn interface_prerequisites(&self) -> Vec<Self>
[src]
pub fn from_name<'a, P: Into<&'a str>>(name: P) -> Option<Self>
[src]
Trait Implementations
impl Clone for Type
[src][+]
impl Copy for Type
[src]
impl Debug for Type
[src][+]
impl Display for Type
[src][+]
impl Eq for Type
[src]
impl FromGlib<usize> for Type
[src][+]
impl FromGlibContainerAsVec<Type, *const usize> for Type
[src][+]
impl FromGlibContainerAsVec<Type, *mut usize> for Type
[src][+]
impl<'a> FromValue<'a> for Type
[src][+]
impl<'a> FromValueOptional<'a> for Type
[src][+]
impl PartialEq<Type> for Type
[src][+]
impl SetValue for Type
[src][+]
impl StaticType for Type
[src][+]
impl StructuralEq for Type
[src]
impl StructuralPartialEq for Type
[src]
impl ToGlib for Type
[src][+]
impl<'a> ToGlibContainerFromSlice<'a, *mut usize> for Type
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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,
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,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
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>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,