Struct oxygengine_user_interface::raui::core::widget::WidgetLifeCycle
source · [−]pub struct WidgetLifeCycle { /* private fields */ }
Implementations
sourceimpl WidgetLifeCycle
impl WidgetLifeCycle
pub fn mount<F>(&mut self, f: F)where
F: 'static + FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync,
pub fn change<F>(&mut self, f: F)where
F: 'static + FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync,
pub fn unmount<F>(&mut self, f: F)where
F: 'static + FnMut(WidgetUnmountContext<'_, '_>) + Send + Sync,
pub fn unwrap(
self
) -> (Vec<Box<dyn FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync + 'static, Global>, Global>, Vec<Box<dyn FnMut(WidgetMountOrChangeContext<'_, '_>) + Send + Sync + 'static, Global>, Global>, Vec<Box<dyn FnMut(WidgetUnmountContext<'_, '_>) + Send + Sync + 'static, Global>, Global>)
Trait Implementations
sourceimpl Default for WidgetLifeCycle
impl Default for WidgetLifeCycle
sourcefn default() -> WidgetLifeCycle
fn default() -> WidgetLifeCycle
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more