pub struct AnyComponentContext<'frame, 'bp> {
pub widget_id: WidgetId,
pub attributes: &'frame mut Attributes<'bp>,
pub emitter: &'frame Emitter,
pub viewport: &'frame Viewport,
pub strings: &'frame Strings,
pub components: &'frame mut DeferredComponents,
/* private fields */
}Fields§
§widget_id: WidgetId§attributes: &'frame mut Attributes<'bp>§emitter: &'frame Emitter§viewport: &'frame Viewport§strings: &'frame Strings§components: &'frame mut DeferredComponentsImplementations§
Source§impl<'frame, 'bp> AnyComponentContext<'frame, 'bp>
impl<'frame, 'bp> AnyComponentContext<'frame, 'bp>
pub fn new( parent: Option<Parent>, ident_id: StringId, sender_id: WidgetId, state_id: StateId, assoc_functions: &'frame [AssocEventMapping], assoc_events: &'frame mut AssociatedEvents, components: &'frame mut DeferredComponents, attributes: &'frame mut Attributes<'bp>, state: Option<&'frame mut StateValue<Box<dyn State>>>, emitter: &'frame Emitter, viewport: &'frame Viewport, stop_runtime: &'frame mut bool, strings: &'frame Strings, ) -> Self
pub fn parent(&self) -> Option<Parent>
pub fn stop_runtime(&mut self)
Auto Trait Implementations§
impl<'frame, 'bp> Freeze for AnyComponentContext<'frame, 'bp>
impl<'frame, 'bp> !RefUnwindSafe for AnyComponentContext<'frame, 'bp>
impl<'frame, 'bp> !Send for AnyComponentContext<'frame, 'bp>
impl<'frame, 'bp> !Sync for AnyComponentContext<'frame, 'bp>
impl<'frame, 'bp> Unpin for AnyComponentContext<'frame, 'bp>
impl<'frame, 'bp> UnsafeUnpin for AnyComponentContext<'frame, 'bp>
impl<'frame, 'bp> !UnwindSafe for AnyComponentContext<'frame, 'bp>
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