Struct oxygengine_user_interface::widget::WidgetLifeCycle [−][src]
pub struct WidgetLifeCycle { /* fields omitted */ }
Implementations
pub fn mount<F>(&mut self, f: F) where
F: 'static + FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync,
[src]pub fn change<F>(&mut self, f: F) where
F: 'static + FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync,
[src]pub fn unmount<F>(&mut self, f: F) where
F: 'static + FnMut(WidgetUnmountContext<'_, '_>) + Send + Sync,
[src]pub fn unwrap(
self
) -> (Vec<Box<dyn FnMut(WidgetMountOrChangeContext<'_, '_>) + 'static + Sync + Send, Global>, Global>, Vec<Box<dyn FnMut(WidgetMountOrChangeContext<'_, '_>) + 'static + Sync + Send, Global>, Global>, Vec<Box<dyn FnMut(WidgetUnmountContext<'_, '_>) + 'static + Sync + Send, Global>, Global>)
[src]Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for WidgetLifeCycle
impl Send for WidgetLifeCycle
impl Sync for WidgetLifeCycle
impl Unpin for WidgetLifeCycle
impl !UnwindSafe for WidgetLifeCycle
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more
impl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,
pub fn try_default() -> Result<T, String>
pub fn try_default() -> Result<T, String>
Tries to create the default.
fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls try_default
and panics on an error case.