Skip to main content

Module frame

Module frame 

Source
Available on crate feature ui only.
Expand description

Frame context, scoped identity, and processing phases

frame


UiFrame carries the current UiScope and UiPhase.

UI authors provide UiKey values, which the current scope resolves into UiId values used by neighboring UI systems.

UiFrame
├── UiScope + UiKey ──resolve──> UiId
└── UiPhase

A key is an author-provided identity seed, while an id is its resolved identity. The same key may be reused in different scopes and resolve to distinct ids, avoiding the need for one globally coordinated key space.

A phase identifies the current kind of frame processing. It does not prescribe a scheduler or require every phase to be performed.

§Boundaries

This module establishes frame context and identity. It does not define layout, interaction ownership, meaning, or presentation.

UiFrame is a small context value. No particular storage model for longer-lived UI memory, caches, or collected output is implied.

Structs§

UiFrame
Immediate UI frame context.
UiId
🫆 Resolved UI identity within a frame.
UiKey
🫆 Stable author-provided UI identity seed.
UiOutput
A completed backend-neutral UI frame over caller-chosen storage.
UiOutputView
🍃 A borrowed read-only view over a completed backend-neutral UI frame.
UiScope
🫆 Scoped UI identity namespace.

Enums§

UiPhase
🕘 Phase of UI frame processing.