MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / peek

Method peek

atomic-core/src/diff/token/tokenizer.rs:174–176  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

172 /// Peek at the next byte without consuming it.
173 #[inline]
174 fn peek(&self) -> Option<u8> {
175 self.content.get(self.position).copied()
176 }
177
178 /// Peek at the byte at position + offset.
179 #[inline]

Callers 8

read_wordMethod · 0.45
read_whitespaceMethod · 0.45
read_newlineMethod · 0.45
read_operatorMethod · 0.45
read_numberMethod · 0.45
read_stringMethod · 0.45
read_commentMethod · 0.45
nextMethod · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected