pub struct Node {
pub kind: NodeKind,
pub key: Option<Key>,
pub children: Vec<Node>,
}Expand description
Minimal recursive node used by compatibility integrations.
This type stores no widget behavior, layout, or state. key is optional and
scoped to reconciliation among siblings; children retain insertion order.
§Examples
use ailloli_ui_runtime::component::{Node, NodeKind};
let node = Node::leaf(NodeKind::Primitive);
assert!(node.key.is_none());
assert!(node.children.is_empty());Fields§
§kind: NodeKindCoarse semantic category.
key: Option<Key>Optional stable sibling identity.
children: Vec<Node>Ordered recursive children.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.