pub struct BridgeOutput {
pub package_base: HashMap<Keyword, Value>,
pub packages: HashMap<RawPackageName, HashMap<Keyword, ClearableValue>>,
pub functions: Vec<RawPackageName>,
}Expand description
Represents the raw parsed, but not yet typed output of the alpm-pkgbuild-bridge script.
Fields§
§package_base: HashMap<Keyword, Value>The map of all assigned keywords in the pkgbase section of the bridge output.
packages: HashMap<RawPackageName, HashMap<Keyword, ClearableValue>>The map of all assigned keywords in the package section of the bridge output.
The keywords are grouped by package name.
functions: Vec<RawPackageName>The list of all package function names that are declared in the bridge output.
Implementations§
Source§impl BridgeOutput
impl BridgeOutput
Sourcepub fn from_file(pkgbuild_path: &Path) -> Result<Self, Error>
pub fn from_file(pkgbuild_path: &Path) -> Result<Self, Error>
Creates a BridgeOutput from a PKGBUILD at a given path, by calling the
alpm-pkgbuild-bridge script.
Sourcepub fn from_script_output(input: &str) -> Result<Self, Error>
pub fn from_script_output(input: &str) -> Result<Self, Error>
Creates a BridgeOutput from some alpm-pkgbuild-bridge script output.
This function is mostly exposed for testing, consider using Self::from_file.
Trait Implementations§
Source§impl Clone for BridgeOutput
impl Clone for BridgeOutput
Source§fn clone(&self) -> BridgeOutput
fn clone(&self) -> BridgeOutput
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BridgeOutput
impl RefUnwindSafe for BridgeOutput
impl Send for BridgeOutput
impl Sync for BridgeOutput
impl Unpin for BridgeOutput
impl UnwindSafe for BridgeOutput
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)