pub struct SemanticsReach {
pub is_modal: bool,
pub hidden: bool,
pub merges_live_state: bool,
}Expand description
The semantics flags that decide how a node’s semantics reach the tree:
which part of a window is live (SemanticsConfiguration::is_modal and
SemanticsConfiguration::hidden), and whether a tree update may keep
what the node reported last.
Fields§
§is_modal: boolThe subtree takes over the screen.
The subtree is skipped by readers.
merges_live_state: boolWhat the node merges can change without its semantics being
invalidated, as a .semantics { } recorder reading live state can,
so every tree update merges it again.
Implementations§
Source§impl SemanticsReach
impl SemanticsReach
Sourcepub fn merged_by(
node: &(impl SemanticsNode + ?Sized),
merges_live_state: bool,
) -> Self
pub fn merged_by( node: &(impl SemanticsNode + ?Sized), merges_live_state: bool, ) -> Self
The modal and hidden flags node merges into a fresh configuration,
with whether what it merges can change without an invalidation.
Trait Implementations§
Source§impl Clone for SemanticsReach
impl Clone for SemanticsReach
impl Copy for SemanticsReach
Source§impl Debug for SemanticsReach
impl Debug for SemanticsReach
Source§impl Default for SemanticsReach
impl Default for SemanticsReach
impl Eq for SemanticsReach
Source§impl PartialEq for SemanticsReach
impl PartialEq for SemanticsReach
impl StructuralPartialEq for SemanticsReach
Auto Trait Implementations§
impl Freeze for SemanticsReach
impl RefUnwindSafe for SemanticsReach
impl Send for SemanticsReach
impl Sync for SemanticsReach
impl Unpin for SemanticsReach
impl UnsafeUnpin for SemanticsReach
impl UnwindSafe for SemanticsReach
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