pub struct SemanticsOwner { /* private fields */ }Expand description
Caches semantics configurations for layout nodes, similar to Jetpack Compose’s SemanticsOwner. This enables lazy semantics tree construction and efficient invalidation.
Implementations§
Source§impl SemanticsOwner
impl SemanticsOwner
pub fn new() -> Self
Sourcepub fn get_or_compute(
&self,
node_id: NodeId,
applier: &mut MemoryApplier,
) -> Option<SemanticsConfiguration>
pub fn get_or_compute( &self, node_id: NodeId, applier: &mut MemoryApplier, ) -> Option<SemanticsConfiguration>
Returns the cached configuration for the given node, computing it if necessary.
Trait Implementations§
Source§impl Default for SemanticsOwner
impl Default for SemanticsOwner
Source§fn default() -> SemanticsOwner
fn default() -> SemanticsOwner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SemanticsOwner
impl !RefUnwindSafe for SemanticsOwner
impl Send for SemanticsOwner
impl !Sync for SemanticsOwner
impl Unpin for SemanticsOwner
impl UnwindSafe for SemanticsOwner
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