Struct Type
pub struct Type(/* private fields */);Expand description
A GLib or GLib-based library type
Implementations§
§impl Type
impl Type
pub const PARAM_SPEC: Type
pub const PARAM_SPEC: Type
The fundamental type from which all GParamSpec types are derived
pub fn name<'a>(self) -> &'a str
pub fn qname(self) -> Quark
pub fn is_a(self, other: Type) -> bool
pub fn parent(self) -> Option<Type>
pub fn children(self) -> Slice<Type>
pub fn interfaces(self) -> Slice<Type>
pub fn interface_prerequisites(self) -> Slice<Type>
pub fn from_name(name: impl IntoGStr) -> Option<Type>
pub fn plugin(self) -> Option<TypePlugin>
pub fn register_dynamic( parent_type: Type, name: impl IntoGStr, plugin: &TypePlugin, flags: TypeFlags, ) -> Type
pub fn add_interface_dynamic(self, interface_type: Type, plugin: &TypePlugin)
Trait Implementations§
§impl From<SignalType> for Type
impl From<SignalType> for Type
§fn from(type_: SignalType) -> Type
fn from(type_: SignalType) -> Type
Converts to this type from the input type.
§impl From<Type> for SignalType
impl From<Type> for SignalType
§fn from(type_: Type) -> SignalType
fn from(type_: Type) -> SignalType
Converts to this type from the input type.
§impl Ord for Type
impl Ord for Type
§impl PartialEq<Type> for SignalType
impl PartialEq<Type> for SignalType
§impl PartialOrd for Type
impl PartialOrd for Type
§impl StaticType for Type
impl StaticType for Type
§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.§impl<'a> ToGlibContainerFromSlice<'a, *mut usize> for Type
impl<'a> ToGlibContainerFromSlice<'a, *mut usize> for Type
type Storage = PhantomData<&'a [Type]>
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 StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
§impl<T> ToSendValue for T
impl<T> ToSendValue for T
§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.