pub enum Type {
Show 23 variants
Invalid,
Unit,
I8,
U8,
Bool,
I32,
U32,
ILong,
ULong,
I64,
U64,
F32,
F64,
String,
Pointer,
Variant,
BaseInterface,
BaseEnum,
BaseFlags,
BaseBoxed,
BaseParamSpec,
BaseObject,
Other(usize),
}
Expand description
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
Implementations
sourceimpl Type
impl Type
pub fn name(&self) -> String
pub fn qname(&self) -> Quark
pub fn is_a(&self, other: &Type) -> bool
pub fn parent(&self) -> Option<Type>
pub fn children(&self) -> Vec<Type, Global>
pub fn interfaces(&self) -> Vec<Type, Global>
pub fn interface_prerequisites(&self) -> Vec<Type, Global>
pub fn from_name<'a, P>(name: P) -> Option<Type>where
P: Into<&'a str>,
Trait Implementations
sourceimpl<'a> FromValueOptional<'a> for Type
impl<'a> FromValueOptional<'a> for Type
unsafe fn from_value_optional(value: &'a Value) -> Option<Type>
sourceimpl StaticType for Type
impl StaticType for Type
sourcefn static_type() -> Type
fn static_type() -> Type
Self
.sourceimpl<'a> ToGlibContainerFromSlice<'a, *mut usize> for Type
impl<'a> ToGlibContainerFromSlice<'a, *mut usize> for Type
type Storage = Option<Vec<usize, Global>>
fn to_glib_none_from_slice(
t: &'a [Type]
) -> (*mut usize, <Type as ToGlibContainerFromSlice<'a, *mut usize>>::Storage)
fn to_glib_container_from_slice(
t: &'a [Type]
) -> (*mut usize, <Type as ToGlibContainerFromSlice<'a, *mut usize>>::Storage)
fn to_glib_full_from_slice(t: &[Type]) -> *mut usize
impl Copy for Type
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.