Enum glib::types::Type [−][src]
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
Invalid
An invalid Type
used as error return value in some functions
Unit
The fundamental type corresponding to the unit type ()
I8
The fundamental type corresponding to i8
U8
The fundamental type corresponding to u8
Bool
The fundamental type corresponding to bool
I32
The fundamental type corresponding to i32
U32
The fundamental type corresponding to u32
ILong
The fundamental type corresponding to C long
ULong
The fundamental type corresponding to C unsigned long
I64
The fundamental type corresponding to i64
U64
The fundamental type corresponding to u64
F32
The fundamental type corresponding to f32
F64
The fundamental type corresponding to f64
String
The fundamental type corresponding to String
Pointer
The fundamental type corresponding to a pointer
Variant
The fundamental type of GVariant
BaseInterface
The fundamental type from which all interfaces are derived
BaseEnum
The fundamental type from which all enumeration types are derived
BaseFlags
The fundamental type from which all flags types are derived
BaseBoxed
The fundamental type from which all boxed types are derived
BaseParamSpec
The fundamental type from which all GParamSpec
types are derived
BaseObject
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]
impl Type
pub fn name(&self) -> String
[src]
pub fn name(&self) -> String
pub fn qname(&self) -> Quark
[src]
pub fn qname(&self) -> Quark
pub fn is_a(&self, other: &Type) -> bool
[src]
pub fn is_a(&self, other: &Type) -> bool
pub fn parent(&self) -> Option<Self>
[src]
pub fn parent(&self) -> Option<Self>
pub fn children(&self) -> Vec<Self>
[src]
pub fn children(&self) -> Vec<Self>
pub fn interfaces(&self) -> Vec<Self>
[src]
pub fn interfaces(&self) -> Vec<Self>
pub fn interface_prerequisites(&self) -> Vec<Self>
[src]
pub fn interface_prerequisites(&self) -> Vec<Self>
pub fn from_name<'a, P: Into<&'a str>>(name: P) -> Option<Self>
[src]
pub fn from_name<'a, P: Into<&'a str>>(name: P) -> Option<Self>
Trait Implementations
impl Clone for Type
[src]
impl Clone for Type
fn clone(&self) -> Type
[src]
fn clone(&self) -> Type
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Type
[src]
impl Copy for Type
impl PartialEq for Type
[src]
impl PartialEq for Type
fn eq(&self, other: &Type) -> bool
[src]
fn eq(&self, other: &Type) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Type) -> bool
[src]
fn ne(&self, other: &Type) -> bool
This method tests for !=
.
impl Eq for Type
[src]
impl Eq for Type
impl Debug for Type
[src]
impl Debug for Type
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Type
[src]
impl Display for Type
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StaticType for Type
[src]
impl StaticType for Type
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl<'a> FromValueOptional<'a> for Type
[src]
impl<'a> FromValueOptional<'a> for Type
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl<'a> FromValue<'a> for Type
[src]
impl<'a> FromValue<'a> for Type
unsafe fn from_value(value: &'a Value) -> Self
[src]
unsafe fn from_value(value: &'a Value) -> Self
impl SetValue for Type
[src]
impl SetValue for Type
impl FromGlib<GType> for Type
[src]
impl FromGlib<GType> for Type
impl ToGlib for Type
[src]
impl ToGlib for Type
impl<'a> ToGlibContainerFromSlice<'a, *mut GType> for Type
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut GType> for Type
type Storage = Option<Vec<GType>>
fn to_glib_none_from_slice(t: &'a [Type]) -> (*mut GType, Self::Storage)
[src]
fn to_glib_none_from_slice(t: &'a [Type]) -> (*mut GType, Self::Storage)
fn to_glib_container_from_slice(t: &'a [Type]) -> (*mut GType, Self::Storage)
[src]
fn to_glib_container_from_slice(t: &'a [Type]) -> (*mut GType, Self::Storage)
fn to_glib_full_from_slice(t: &[Type]) -> *mut GType
[src]
fn to_glib_full_from_slice(t: &[Type]) -> *mut GType
impl FromGlibContainerAsVec<Type, *const GType> for Type
[src]
impl FromGlibContainerAsVec<Type, *const GType> for Type
unsafe fn from_glib_none_num_as_vec(ptr: *const GType, num: usize) -> Vec<Self>
[src]
unsafe fn from_glib_none_num_as_vec(ptr: *const GType, num: usize) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(_: *const GType, _: usize) -> Vec<Self>
[src]
unsafe fn from_glib_container_num_as_vec(_: *const GType, _: usize) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(_: *const GType, _: usize) -> Vec<Self>
[src]
unsafe fn from_glib_full_num_as_vec(_: *const GType, _: usize) -> Vec<Self>
impl FromGlibContainerAsVec<Type, *mut GType> for Type
[src]
impl FromGlibContainerAsVec<Type, *mut GType> for Type