pub struct InitializingObject<T>(_)
where
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§
§impl<T> InitializingObject<T>where
T: ObjectSubclass,
impl<T> InitializingObject<T>where T: ObjectSubclass,
pub unsafe fn as_ref(&self) -> &<T as ObjectSubclass>::Type
pub unsafe fn as_ref(&self) -> &<T as ObjectSubclass>::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()
.
pub fn as_ptr(&self) -> *mut <T as ObjectSubclass>::Type
pub fn as_ptr(&self) -> *mut <T as ObjectSubclass>::Type
Returns a pointer 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()
.
Trait Implementations§
§impl<T> InitializingWidgetExt for InitializingObject<T>where
T: WidgetImpl,
impl<T> InitializingWidgetExt for InitializingObject<T>where T: WidgetImpl,
fn init_template(&self)
Auto Trait Implementations§
impl<T> RefUnwindSafe for InitializingObject<T>where <T as ObjectSubclass>::Type: RefUnwindSafe,
impl<T> Send for InitializingObject<T>where <T as ObjectSubclass>::Type: Send,
impl<T> Sync for InitializingObject<T>where <T as ObjectSubclass>::Type: Sync,
impl<T> Unpin for InitializingObject<T>where <T as ObjectSubclass>::Type: Unpin,
impl<T> UnwindSafe for InitializingObject<T>where <T as ObjectSubclass>::Type: UnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.