MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / next

Method next

src/data/parse/json.rs:212–218  ·  view source on GitHub ↗
(&self, pos: Self::Pos)

Source from the content-addressed store, hash-verified

210 type Err = SimpleErr;
211
212 fn next(&self, pos: Self::Pos) -> Result<(char, Self::Pos), Self::Err>
213 {
214 self.chars()
215 .nth(pos.idx() as usize)
216 .ok_or_else(|| self.err_at(pos, "[ERR] OUT OF BOUNDS"))
217 .map(|c| (c, pos.next(c)))
218 }
219
220 fn next_range(&self, start: Self::Pos, counts: u32) -> Result<(&str, Self::Pos), Self::Err>
221 {

Callers 2

parseMethod · 0.45
next_rangeMethod · 0.45

Calls 3

err_atMethod · 0.80
mapMethod · 0.45
idxMethod · 0.45

Tested by

no test coverage detected