MCPcopy Create free account
hub / github.com/AccessKit/accesskit / build_tree

Function build_tree

platforms/ios/src/node.rs:512–520  ·  view source on GitHub ↗
(nodes: Vec<(NodeId, NodeBuilder)>)

Source from the content-addressed store, hash-verified

510 const ROOT_ID: NodeId = NodeId(0);
511
512 fn build_tree(nodes: Vec<(NodeId, NodeBuilder)>) -> accesskit_consumer::Tree {
513 let update = TreeUpdate {
514 nodes,
515 tree: Some(Tree::new(ROOT_ID)),
516 tree_id: TreeId::ROOT,
517 focus: ROOT_ID,
518 };
519 accesskit_consumer::Tree::new(update, false)
520 }
521
522 fn with_single<F, R>(node: &NodeBuilder, f: F) -> R
523 where

Callers 3

with_singleFunction · 0.70
node_can_be_focusedFunction · 0.70
node_frame_sourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected