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

Method deserialize_any

src/serde.rs:93–98  ·  view source on GitHub ↗
(self, visitor: V)

Source from the content-addressed store, hash-verified

91 type Error = ParseError;
92
93 fn deserialize_any<V: Visitor<'de>>(self, visitor: V) -> Result<V::Value, Self::Error> {
94 match self.scan()? {
95 None => Err(ParseError::custom_err("unexpected end of input".to_string())),
96 Some(token) => deserialize_token(self, token, visitor),
97 }
98 }
99
100 fn deserialize_option<V: Visitor<'de>>(self, visitor: V) -> Result<V::Value, Self::Error> {
101 match self.scan()? {

Callers

nothing calls this directly

Calls 2

deserialize_tokenFunction · 0.85
scanMethod · 0.45

Tested by

no test coverage detected