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

Method parser

alpm-types/src/path.rs:370–398  ·  view source on GitHub ↗

Parses a [`SonameLookupDirectory`] from a string slice. Consumes all of its input. See [`SonameLookupDirectory::from_str`] for more details.

(input: &mut &str)

Source from the content-addressed store, hash-verified

368/// # }
369pub type Backup = RelativeFilePath;
370
371/// A special install script that is to be included in the package
372///
373/// This is a type alias for [RelativeFilePath`]
374///
375/// ## Examples
376/// ```
377/// use std::str::FromStr;
378///
379/// use alpm_types::{Error, Install};
380///
381/// # fn main() -> Result<(), alpm_types::Error> {
382/// // Create Install from &str and format it
383/// assert_eq!(
384/// "scripts/setup.install",
385/// Install::from_str("scripts/setup.install")?.to_string()
386/// );
387/// # Ok(())
388/// # }
389pub type Install = RelativeFilePath;
390
391/// The relative path to a changelog file that may be included in a package
392///
393/// This is a type alias for [`RelativeFilePath`]
394///
395/// ## Examples
396/// ```
397/// use std::str::FromStr;
398///
399/// use alpm_types::{Error, Changelog};
400///
401/// # fn main() -> Result<(), alpm_types::Error> {

Callers

nothing calls this directly

Calls 2

from_strFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected