pub struct NativeElement {
pub tag: &'static str,
pub payload: Option<Arc<dyn WidgetPayload>>,
pub children: Vec<Element>,
pub key: Option<Key>,
}Expand description
An element backed by a native widget (a Box<dyn Widget>).
Fields§
§tag: &'static strDebug label (type name of the widget).
payload: Option<Arc<dyn WidgetPayload>>The actual widget, type-erased. Walker downcasts to WidgetBox.
None for element-tree-only nodes (e.g. layout-crate containers).
children: Vec<Element>§key: Option<Key>Optional stable key for reconciler identity (local to sibling list).
Trait Implementations§
Source§impl Clone for NativeElement
impl Clone for NativeElement
Source§fn clone(&self) -> NativeElement
fn clone(&self) -> NativeElement
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 NativeElement
impl !UnwindSafe for NativeElement
impl Freeze for NativeElement
impl Send for NativeElement
impl Sync for NativeElement
impl Unpin for NativeElement
impl UnsafeUnpin for NativeElement
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