MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / next_char

Method next_char

src/program/serde.rs:100–104  ·  view source on GitHub ↗

Consume the first character in the input.

(&mut self)

Source from the content-addressed store, hash-verified

98
99 // Consume the first character in the input.
100 pub fn next_char(&mut self) -> Result<char> {
101 let ch = self.peek_char()?;
102 self.input = &self.input[ch.len_utf8()..];
103 Ok(ch)
104 }
105
106 pub fn is_empty(&self) -> bool {
107 self.input.is_empty()

Callers 3

parse_stringMethod · 0.80
parse_vecMethod · 0.80
newMethod · 0.80

Calls 1

peek_charMethod · 0.80

Tested by

no test coverage detected