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

Method next

consumer/src/iterators.rs:33–43  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

31 type Item = NodeId;
32
33 fn next(&mut self) -> Option<Self::Item> {
34 match self {
35 Self::Normal {
36 parent_id,
37 children,
38 } => children
39 .next()
40 .map(|child| parent_id.with_same_tree(*child)),
41 Self::Graft(id) => id.take(),
42 }
43 }
44
45 fn size_hint(&self) -> (usize, Option<usize>) {
46 let len = self.len();

Callers 15

fmtMethod · 0.80
is_document_startMethod · 0.80
is_document_endMethod · 0.80
biased_to_startMethod · 0.80
biased_to_endMethod · 0.80
is_format_startMethod · 0.80
supports_text_rangesMethod · 0.80
document_start_innerMethod · 0.80
next_filtered_siblingFunction · 0.80

Calls 9

next_filtered_siblingFunction · 0.85
mapMethod · 0.80
with_same_treeMethod · 0.80
getMethod · 0.80
childrenMethod · 0.80
dataMethod · 0.80
node_by_idMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected