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

Method parser

alpm-types/src/relation/base.rs:79–86  ·  view source on GitHub ↗

Parses a [`PackageRelation`] from a string slice. Consumes all of its input. # Examples See [`Self::from_str`] for code examples. # Errors Returns an error if `input` is not a valid _package-relation_.

(input: &mut &str)

Source from the content-addressed store, hash-verified

77}
78
79impl AlpmParser for PackageRelation {
80 /// Recognizes a [`PackageRelation`] in a string slice.
81 ///
82 /// # Examples
83 ///
84 /// See [`Self::from_str`] for code examples.
85 ///
86 /// # Errors
87 ///
88 /// Returns an error if `input` does not begin with a valid [alpm-package-relation].
89 ///

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected