MCPcopy Create free account
hub / github.com/chanced/jsonptr / next

Method next

src/token.rs:336–341  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

334impl<'a> Iterator for Tokens<'a> {
335 type Item = Token<'a>;
336 fn next(&mut self) -> Option<Self::Item> {
337 self.inner
338 .next()
339 // SAFETY: source pointer is encoded
340 .map(|s| unsafe { Token::from_encoded_unchecked(s) })
341 }
342}
343impl<'t> Tokens<'t> {
344 pub(crate) fn new(inner: Split<'t, char>) -> Self {

Callers 1

tokensMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected