pub type PkgBase = Name;
Expand description
Name of the base package information that one or more packages are built from.
This is a type alias for Name
.
§Examples
use std::str::FromStr;
use alpm_types::{Error, Name};
// create PkgBase from &str
let pkgbase = Name::from_str("test-123@.foo_+")?;
// format as String
let pkgbase = Name::from_str("foo")?;
assert_eq!("foo", pkgbase.to_string());
Aliased Type§
struct PkgBase(String);
Fields§
§0: String