Skip to main content

LNode

Struct LNode 

Source
pub struct LNode {
Show 29 fields pub index: u32, pub id: String, pub component: String, pub part: Option<String>, pub owner: Option<String>, pub owner_component: Option<String>, pub catalog_id: Option<String>, pub extension_kind: Option<String>, pub depth: u32, pub parent: Option<u32>, pub children: Vec<u32>, pub layer: u32, pub kind: NodeKind, pub props: Props, pub base_style: Props, pub default_keys: Vec<String>, pub own_query: Option<RecipeQuery>, pub part_query: Option<RecipeQuery>, pub authored_keys: Vec<String>, pub hidden: bool, pub lines: Option<u32>, pub pressable: bool, pub scope: String, pub source: Option<SourceRef>, pub on: Option<IndexMap<String, Value>>, pub accessibility: Option<Value>, pub trigger_for: Option<String>, pub form: Option<String>, pub live: Option<String>,
}
Expand description

One layout node. style keeps tokens UNRESOLVED and conditions NESTED; the surface resolves them per theme/mode and flattens per pass.

Fields§

§index: u32

The SLOT (stable across rebuilds by id) once the surface reconciled; the pre-order position inside a fresh Built.

§id: String§component: String

The native kind painted (Box, Text, Button, …, Extension).

§part: Option<String>

The synthetic part of a native (Tabs/tab, Input/label).

§owner: Option<String>

The id of the native that owns the part.

§owner_component: Option<String>§catalog_id: Option<String>

For Extension nodes: the extension’s catalog id and native kind.

§extension_kind: Option<String>§depth: u32§parent: Option<u32>§children: Vec<u32>§layer: u32§kind: NodeKind§props: Props

Props with bindings, calls and $string.<id> resolved.

§base_style: Props

The structural style (author’s + template’s), bindings resolved, token refs NOT resolved, conditions nested.

§default_keys: Vec<String>

The keys of base_style a builder only DEFAULTED (style_default): the native’s own root recipe wins over them (an author’s key wins over the recipe).

§own_query: Option<RecipeQuery>

The native’s own root recipe (Text/root for its variant).

§part_query: Option<RecipeQuery>

The macro or native PART recipe (Badge/label, Tabs/tab).

§authored_keys: Vec<String>

VAPP-163: the base_style keys the author wrote ON the macro node (recipe.authored): they win over the part recipe.

§hidden: bool§lines: Option<u32>§pressable: bool§scope: String

The data scope (template item pointer) bindings resolved against.

§source: Option<SourceRef>

Where the node’s SOURCE UiNode lives when its id is an instance id (a template item’s descendants, a Table slot cell’s controls carry <sourceId><suffix>). None = the id itself names a node of the surface’s tree (or the node is a synthetic part).

§on: Option<IndexMap<String, Value>>

The on map of the source node (events route through the owner).

§accessibility: Option<Value>§trigger_for: Option<String>

The overlay node this node opens (a trigger slot’s root).

§form: Option<String>

The enclosing Form’s id (fields and submit buttons).

§live: Option<String>

A live region: polite | assertive (Text live, Toast, Form errors).

Trait Implementations§

Source§

impl Clone for LNode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LNode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for LNode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LNode

Auto Trait Implementations§

§

impl Freeze for LNode

§

impl RefUnwindSafe for LNode

§

impl Send for LNode

§

impl Sync for LNode

§

impl Unpin for LNode

§

impl UnsafeUnpin for LNode

§

impl UnwindSafe for LNode

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.