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

Method peek

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

Source from the content-addressed store, hash-verified

159 /// ```
160 #[inline]
161 pub fn peek(&mut self) -> Option<&I::Item> {
162 let iter = &mut self.iter;
163 self.peeked.get_or_insert_with(|| iter.next()).as_ref()
164 }
165}

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected