pub struct AccessTree {
pub nodes: Vec<AccessNode>,
pub focus: Option<Key>,
pub hash: u64,
}Expand description
The semantic nodes of a finished frame, in tree order (a parent always precedes its descendants; the root comes first).
Fields§
§nodes: Vec<AccessNode>§focus: Option<Key>The node holding keyboard focus, if any.
hash: u64A hash of everything above: a driver that sent the tree once sends it again only when this changes.
Implementations§
Source§impl AccessTree
impl AccessTree
Sourcepub fn to_value(&self, h: Handles) -> Value
pub fn to_value(&self, h: Handles) -> Value
{nodes, focus, hash}, every node by AccessNode::to_value,
the focus key spelled by h and the hash as sixteen hex digits.
pub fn get(&self, key: Key) -> Option<&AccessNode>
Sourcepub fn children(&self, key: Key) -> impl Iterator<Item = &AccessNode>
pub fn children(&self, key: Key) -> impl Iterator<Item = &AccessNode>
The nodes whose parent is key, in order.
Sourcepub fn root(&self) -> Option<&AccessNode>
pub fn root(&self) -> Option<&AccessNode>
The root (the window), when a frame has been built.
Trait Implementations§
Source§impl Clone for AccessTree
impl Clone for AccessTree
Source§impl Debug for AccessTree
impl Debug for AccessTree
Source§impl Default for AccessTree
impl Default for AccessTree
Source§impl PartialEq for AccessTree
impl PartialEq for AccessTree
impl StructuralPartialEq for AccessTree
Auto Trait Implementations§
impl Freeze for AccessTree
impl RefUnwindSafe for AccessTree
impl Send for AccessTree
impl Sync for AccessTree
impl Unpin for AccessTree
impl UnsafeUnpin for AccessTree
impl UnwindSafe for AccessTree
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