pub struct SemanticsSnapshot {
pub window: AppWindowId,
pub roots: Vec<SemanticsRoot>,
pub barrier_root: Option<NodeId>,
pub focus_barrier_root: Option<NodeId>,
pub focus: Option<NodeId>,
pub captured: Option<NodeId>,
pub nodes: Vec<SemanticsNode>,
}Fields§
§window: AppWindowId§roots: Vec<SemanticsRoot>§barrier_root: Option<NodeId>The root of the topmost modal layer (if any), matching ADR 0011/0033 semantics gating.
focus_barrier_root: Option<NodeId>The root of the topmost focus-blocking layer (if any).
This is intentionally decoupled from barrier_root: some overlay close transitions keep a
pointer barrier active while releasing focus containment.
focus: Option<NodeId>§captured: Option<NodeId>§nodes: Vec<SemanticsNode>Implementations§
Source§impl SemanticsSnapshot
impl SemanticsSnapshot
pub fn validate(&self) -> Result<(), SemanticsValidationError>
Trait Implementations§
Source§impl Clone for SemanticsSnapshot
impl Clone for SemanticsSnapshot
Source§fn clone(&self) -> SemanticsSnapshot
fn clone(&self) -> SemanticsSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticsSnapshot
impl Debug for SemanticsSnapshot
Source§impl Default for SemanticsSnapshot
impl Default for SemanticsSnapshot
Source§fn default() -> SemanticsSnapshot
fn default() -> SemanticsSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SemanticsSnapshot
impl RefUnwindSafe for SemanticsSnapshot
impl Send for SemanticsSnapshot
impl Sync for SemanticsSnapshot
impl Unpin for SemanticsSnapshot
impl UnsafeUnpin for SemanticsSnapshot
impl UnwindSafe for SemanticsSnapshot
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