Function som_parser_core::combinators::default
source · pub fn default<A: Default, I: Clone>(
parser: impl Parser<A, I>
) -> impl Parser<A, I>
Expand description
Tries to apply a parser, or fallback to its default value (making it an always-succeeding parser).