MCPcopy Create free account
hub / github.com/archlinux/alpm / fmt

Method fmt

alpm-types/src/relation/base.rs:90–96  ·  view source on GitHub ↗
(&self, f: &mut Formatter<'_>)

Source from the content-addressed store, hash-verified

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>(

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected