Skip to main content

resolve_serialized

Function resolve_serialized 

Source
pub fn resolve_serialized(
    own: &RawStr,
    parent_engine: Option<&RawStr>,
    policy: &VersionPolicy,
    charge: &mut Charge,
) -> Result<ResolvedVersion, Error>
Expand description

Chain 2: SerializedFile.set_version. own is the file’s string (format 7 and up); parent_engine is Some only when the parent is a bundle (its header’s version_engine). The string the chain picks is kept by the result without a copy (module docs). The parse’s work and the result’s heap go to charge, as resolve_bundle’s do.