Struct glib::subclass::types::InitializingObject
source · pub struct InitializingObject<T: ObjectSubclass>(_);
Expand description
An object that is currently being initialized.
Binding crates should use traits for adding methods to this struct. Only methods explicitly safe
to call during instance_init()
should be added.
Implementations§
source§impl<T: ObjectSubclass> InitializingObject<T>
impl<T: ObjectSubclass> InitializingObject<T>
sourcepub unsafe fn as_ref(&self) -> &T::Type
pub unsafe fn as_ref(&self) -> &T::Type
Returns a reference to the object.
Safety
The returned object has not been completely initialized at this point. Use of the object
should be restricted to methods that are explicitly documented to be safe to call during
instance_init()
.