What does outer
and inner
do?
#918
Answered
by
tomtau
Eisverygoodletter
asked this question in
Q&A
-
I have seen some code in the examples like #[pest_ast(outer(with(span_into_str), with(str::parse), with(Result::unwrap)))] with multiple items like |
Beta Was this translation helpful? Give feedback.
Answered by
tomtau
Aug 20, 2023
Replies: 1 comment
-
Their parameters define the conversion strategy, so in that example of csv: https://github.com/pest-parser/ast/blob/09255d748b63ecd5741cefb5275763323871f898/derive/README.md?plain=1#L280 it'll first call |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tomtau
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Their parameters define the conversion strategy, so in that example of csv: https://github.com/pest-parser/ast/blob/09255d748b63ecd5741cefb5275763323871f898/derive/README.md?plain=1#L280
it'll first call
span_into_str
, thenparse
, and finallyunwrap
to get thatf64
value