Parses a [`SonameLookupDirectory`] from a string slice. Consumes all of its input. See [`SonameLookupDirectory::from_str`] for more details.
(input: &mut &str)
| 368 | /// # } |
| 369 | pub 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 | /// # } |
| 389 | pub 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> { |