Function handle_package

Source
fn handle_package(
    package: &mut Package,
    values: HashMap<Keyword, ClearableValue>,
) -> Result<(), BridgeError>
Expand description

Adds a map of Keyword and ClearableValue to a Package.

Handles parsing and type conversions of all raw input into their respective alpm_types types.

ยงErrors

Returns an error if

  • one of the values in values cannot be converted into its respective alpm_types type,
  • or keywords incompatible with Package are encountered.