pub struct ComponentRef {
pub type_name: String,
pub component: Arc<dyn Component>,
pub props: Props,
}Expand description
A reference to a child component.
Fields§
§type_name: StringComponent type name for debugging
component: Arc<dyn Component>The component instance (wrapped for Clone)
props: PropsProps passed to the component
Trait Implementations§
Source§impl Clone for ComponentRef
impl Clone for ComponentRef
Source§fn clone(&self) -> ComponentRef
fn clone(&self) -> ComponentRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentRef
impl Debug for ComponentRef
Source§impl PartialEq for ComponentRef
impl PartialEq for ComponentRef
Auto Trait Implementations§
impl Freeze for ComponentRef
impl !RefUnwindSafe for ComponentRef
impl Send for ComponentRef
impl Sync for ComponentRef
impl Unpin for ComponentRef
impl UnsafeUnpin for ComponentRef
impl !UnwindSafe for ComponentRef
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