Skip to main content

## metadata_of

# Function metadata_of

Source

    fn metadata_of<'a>(
        unit: &Unit,
        build_runner: &BuildRunner<'_, '_>,
        metas: &'a mut HashMap<Unit, Metadata>,
    ) -> &'a Metadata

Expand description

Gets the metadata hash for the given `Unit`.

When a metadata hash doesn’t exist for the given unit, this calls itself recursively to compute metadata hashes of all its dependencies. See `compute_metadata` for how a single metadata hash is computed.