pub struct DomNode {
pub widget: Box<dyn ErasedWidget>,
pub parent: Option<WidgetId>,
pub children: Vec<WidgetId>,
/* private fields */
}Expand description
A node in the Dom.
Fields§
§widget: Box<dyn ErasedWidget>The widget implementation. Only a subset of the methods from Widget
are available without downcasting the widget first.
parent: Option<WidgetId>The parent of this node, if it has one.
children: Vec<WidgetId>All of this node’s children.
Auto Trait Implementations§
impl Freeze for DomNode
impl !RefUnwindSafe for DomNode
impl !Send for DomNode
impl !Sync for DomNode
impl Unpin for DomNode
impl !UnwindSafe for DomNode
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