[−][src]Enum glib::types::Type
A GLib or GLib-based library type
Variants
InvalidAn invalid Type used as error return value in some functions
UnitThe fundamental type corresponding to the unit type ()
I8The fundamental type corresponding to i8
U8The fundamental type corresponding to u8
BoolThe fundamental type corresponding to bool
I32The fundamental type corresponding to i32
U32The fundamental type corresponding to u32
ILongThe fundamental type corresponding to C long
ULongThe fundamental type corresponding to C unsigned long
I64The fundamental type corresponding to i64
U64The fundamental type corresponding to u64
F32The fundamental type corresponding to f32
F64The fundamental type corresponding to f64
StringThe fundamental type corresponding to String
PointerThe fundamental type corresponding to a pointer
VariantThe fundamental type of GVariant
BaseInterfaceThe fundamental type from which all interfaces are derived
BaseEnumThe fundamental type from which all enumeration types are derived
BaseFlagsThe fundamental type from which all flags types are derived
BaseBoxedThe fundamental type from which all boxed types are derived
BaseParamSpecThe fundamental type from which all GParamSpec types are derived
BaseObjectThe 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 ToGlib for Type[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut usize> for Type[src]
type Storage = Option<Vec<GType>>
fn to_glib_none_from_slice(t: &'a [Type]) -> (*mut GType, Self::Storage)[src]
fn to_glib_container_from_slice(t: &'a [Type]) -> (*mut GType, Self::Storage)[src]
fn to_glib_full_from_slice(t: &[Type]) -> *mut GType[src]
impl FromGlib<usize> for Type[src]
impl FromGlibContainerAsVec<Type, *const usize> for Type[src]
unsafe fn from_glib_none_num_as_vec(ptr: *const GType, num: usize) -> Vec<Self>[src]
unsafe fn from_glib_container_num_as_vec(_: *const GType, _: usize) -> Vec<Self>[src]
unsafe fn from_glib_full_num_as_vec(_: *const GType, _: usize) -> Vec<Self>[src]
impl FromGlibContainerAsVec<Type, *mut usize> for Type[src]
unsafe fn from_glib_none_num_as_vec(ptr: *mut GType, num: usize) -> Vec<Self>[src]
unsafe fn from_glib_container_num_as_vec(
ptr: *mut GType,
num: usize
) -> Vec<Self>[src]
ptr: *mut GType,
num: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(ptr: *mut GType, num: usize) -> Vec<Self>[src]
impl StaticType for Type[src]
fn static_type() -> Type[src]
impl<'a> FromValueOptional<'a> for Type[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>[src]
impl<'a> FromValue<'a> for Type[src]
unsafe fn from_value(value: &'a Value) -> Self[src]
impl SetValue for Type[src]
impl Eq for Type[src]
impl PartialEq<Type> for Type[src]
impl Copy for Type[src]
impl Clone for Type[src]
fn clone(&self) -> Type[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Type[src]
impl Display for Type[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToValue for T where
T: SetValue + ?Sized, [src]
T: SetValue + ?Sized,
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> 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, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,