Skip to content

try_fold support #1411

@epage

Description

@epage

Prerequisites

Here are a few things you should provide to help me understand the issue:

  • Rust version : 1.55.0
  • nom version : 7.0.0
  • nom compilation features used: default

Split out of #1409

fold_many_* doesn't support coming across errors. When folding the elements of a TOML table, we need to error if keys are duplicated. I think it'd be useful to take inspiration from try_fold in the stdlib. This uses an unstable trait but we can for now constrain what types we can Try on until Try becomes stable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions