pub struct ComponentInstance {
pub instance: Arc<Mutex<Box<dyn AnyComponent>>>,
pub props: Box<dyn Props>,
pub type_id: TypeId,
}
Expand description
Wraps a component instance with its metadata
Fields§
§instance: Arc<Mutex<Box<dyn AnyComponent>>>
Component instance
props: Box<dyn Props>
Current props
type_id: TypeId
Component type ID for type checking
Implementations§
Source§impl ComponentInstance
impl ComponentInstance
Trait Implementations§
Source§impl Clone for ComponentInstance
impl Clone for ComponentInstance
Auto Trait Implementations§
impl Freeze for ComponentInstance
impl !RefUnwindSafe for ComponentInstance
impl Send for ComponentInstance
impl Sync for ComponentInstance
impl Unpin for ComponentInstance
impl !UnwindSafe for ComponentInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to Any for downcasting (mutable)
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Get the event type name
Source§impl<T> Props for T
impl<T> Props for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any for downcasting