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)
| 77 | } |
| 78 | |
| 79 | impl 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 | /// |