(&self, f: &mut Formatter<'_>)
| 88 | /// Returns an error if `input` does not begin with a valid [alpm-package-relation]. |
| 89 | /// |
| 90 | /// [alpm-package-relation]: https://alpm.archlinux.page/specifications/alpm-package-relation.7.html |
| 91 | fn parser(input: &mut &str) -> ModalResult<Self> { |
| 92 | seq!(Self { |
| 93 | name: Name::parser.context(StrContext::Label("package name")), |
| 94 | version_requirement: opt(VersionRequirement::parser), |
| 95 | }) |
| 96 | .parse_next(input) |
| 97 | } |
| 98 | |
| 99 | fn delimiter_error_context<'a, O, P>( |