MCPcopy Create free account
hub / github.com/clojure-rs/ClojureRS / to_value_parser

Function to_value_parser

src/reader.rs:381–385  ·  view source on GitHub ↗

Currently used to create 'try_readers', which are readers (or reader functions, at least) that are basically composable InputType -> IResult parsers, that our normal read function / reader will wrap. Takes a parser, such as one that reads a &str and returns an i32, and creates a new parser that instead returns a valid ClojureRS Value instead

(
    parser: impl Fn(I) -> IResult<I, O>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

try_read_i32Function · 0.85
try_read_f64Function · 0.85
try_read_symbolFunction · 0.85
try_read_stringFunction · 0.85

Calls 1

to_valueMethod · 0.45

Tested by

no test coverage detected