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§fn clone(&self) -> AccessTree
fn clone(&self) -> AccessTree
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 AccessTree
impl Debug for AccessTree
Source§impl Default for AccessTree
impl Default for AccessTree
Source§fn default() -> AccessTree
fn default() -> AccessTree
Returns the “default value” for a type. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.