pub struct Component<'bp> {
pub name: &'bp str,
pub name_id: StringId,
pub body: &'bp [Blueprint],
pub dyn_component: Box<dyn AnyComponent>,
pub state_id: StateId,
pub component_id: ComponentBlueprintId,
pub widget_id: WidgetId,
pub parent: Option<WidgetId>,
pub kind: ComponentKind,
pub assoc_functions: &'bp [AssocEventMapping],
pub tabindex: u16,
}Fields§
§name: &'bp str§name_id: StringId§body: &'bp [Blueprint]§dyn_component: Box<dyn AnyComponent>§state_id: StateId§component_id: ComponentBlueprintIdUsed to identify the component in the component registry. This id will not be unique for prototypes
widget_id: WidgetId§parent: Option<WidgetId>§kind: ComponentKind§assoc_functions: &'bp [AssocEventMapping]§tabindex: u16Implementations§
Source§impl<'bp> Component<'bp>
impl<'bp> Component<'bp>
pub fn new( name: &'bp str, name_id: StringId, body: &'bp [Blueprint], dyn_component: Box<dyn AnyComponent>, state_id: StateId, component_id: ComponentBlueprintId, widget_id: WidgetId, kind: ComponentKind, assoc_functions: &'bp [AssocEventMapping], parent: Option<WidgetId>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'bp> Freeze for Component<'bp>
impl<'bp> !RefUnwindSafe for Component<'bp>
impl<'bp> !Send for Component<'bp>
impl<'bp> !Sync for Component<'bp>
impl<'bp> Unpin for Component<'bp>
impl<'bp> !UnwindSafe for Component<'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