pub struct WidgetRegistry {
pub map: BTreeMap<LiveType, (LiveComponentInfo, Box<dyn WidgetFactory>)>,
}Fields§
§map: BTreeMap<LiveType, (LiveComponentInfo, Box<dyn WidgetFactory>)>Implementations§
Trait Implementations§
Source§impl Default for WidgetRegistry
impl Default for WidgetRegistry
Source§fn default() -> WidgetRegistry
fn default() -> WidgetRegistry
Returns the “default value” for a type. Read more
Source§impl LiveComponentRegistry for WidgetRegistry
impl LiveComponentRegistry for WidgetRegistry
fn ref_cast_type_id(&self) -> LiveType
fn component_type(&self) -> LiveId
fn get_module_set(&self, set: &mut BTreeSet<LiveModuleId>)
fn get_component_info(&self, name: LiveId) -> Option<LiveComponentInfo>
Auto Trait Implementations§
impl !RefUnwindSafe for WidgetRegistry
impl !Send for WidgetRegistry
impl !Sync for WidgetRegistry
impl !UnwindSafe for WidgetRegistry
impl Freeze for WidgetRegistry
impl Unpin for WidgetRegistry
impl UnsafeUnpin for WidgetRegistry
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