pub fn resolve_bundle(
engine: &RawStr,
policy: &VersionPolicy,
charge: &mut Charge,
) -> Result<ResolvedVersion, Error>Expand description
Chain 1: BundleFile.parse_version. engine is the header’s
version_engine, kept by the result without a copy (module docs). Each
parse’s work is counted on charge’s meter, the input’s, and the
result’s heap is charged to charge, the handle charge of the bundle
that keeps it, before it is allocated (module docs, “Work”): the error
is a VersionError or such a refusal.