MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / next

Method next

aiscript-lexer/src/peakable.rs:23–28  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

21
22 #[inline]
23 fn next(&mut self) -> Option<I::Item> {
24 match self.peeked.take() {
25 Some(v) => v,
26 None => self.iter.next(),
27 }
28 }
29
30 #[inline]
31 fn count(mut self) -> usize {

Callers 1

peekMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected