pub struct ComponentElement {
pub id: ComponentId,
pub key: Option<Key>,
pub component: Arc<dyn Component>,
pub children: Vec<Element>,
}Expand description
An element representing a component instance in the tree.
Fields§
§id: ComponentId§key: Option<Key>§component: Arc<dyn Component>The component that produced this element. The walker calls build() on it.
children: Vec<Element>Trait Implementations§
Source§impl Clone for ComponentElement
impl Clone for ComponentElement
Source§fn clone(&self) -> ComponentElement
fn clone(&self) -> ComponentElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ComponentElement
impl !UnwindSafe for ComponentElement
impl Freeze for ComponentElement
impl Send for ComponentElement
impl Sync for ComponentElement
impl Unpin for ComponentElement
impl UnsafeUnpin for ComponentElement
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