MCPcopy Create free account
hub / github.com/dprint/jsonc-parser / CharProvider

Interface CharProvider

src/string.rs:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49pub trait CharProvider<'a> {
50 fn current_char(&mut self) -> Option<char>;
51 fn byte_index(&self) -> usize;
52 fn move_next_char(&mut self) -> Option<char>;
53 fn text(&self) -> &'a str;
54}
55
56#[cfg(feature = "cst")]
57pub fn parse_string(text: &str) -> Result<Cow<'_, str>, ParseStringError> {

Callers

nothing calls this directly

Implementers 2

scanner.rssrc/scanner.rs
parse_stringsrc/string.rs

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…