1 2 3 4 5 6 7 8 9 10 11
fn value<S, U: Parsable>() -> impl Parser<S, U, Ini> { move |state, input: U| { // 1 // ┃ take(1.., isnt(one_of("\n;"))) .parse(state, input) .map_result(|value| Ini::Value(value.into())) // ┠────────────────────┘ // 2 } }