pub struct SemanticTree {
pub root: SemanticNodeId,
pub focus: SemanticNodeId,
pub nodes: Vec<SemanticNode>,
}Fields§
§root: SemanticNodeId§focus: SemanticNodeId§nodes: Vec<SemanticNode>Implementations§
Source§impl SemanticTree
impl SemanticTree
Sourcepub fn parent_relative_bounds(&self) -> HashMap<SemanticNodeId, Rect>
pub fn parent_relative_bounds(&self) -> HashMap<SemanticNodeId, Rect>
Converts surface-relative bounds for hosts whose accessible nodes are positioned relative to their semantic parent (for example nested DOM). Root and unattached nodes retain surface coordinates. Recompute after parent movement/reparenting even when a child’s surface bounds are unchanged.
pub fn node(&self, id: SemanticNodeId) -> Option<&SemanticNode>
pub fn diff(&self, next: &Self) -> SemanticPatch
Trait Implementations§
Source§impl Clone for SemanticTree
impl Clone for SemanticTree
Source§fn clone(&self) -> SemanticTree
fn clone(&self) -> SemanticTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SemanticTree
impl Debug for SemanticTree
Source§impl PartialEq for SemanticTree
impl PartialEq for SemanticTree
impl StructuralPartialEq for SemanticTree
Auto Trait Implementations§
impl Freeze for SemanticTree
impl RefUnwindSafe for SemanticTree
impl Send for SemanticTree
impl Sync for SemanticTree
impl Unpin for SemanticTree
impl UnsafeUnpin for SemanticTree
impl UnwindSafe for SemanticTree
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