imported_purpose_records_from_nodes

Function imported_purpose_records_from_nodes 

Source
pub(crate) fn imported_purpose_records_from_nodes<E, F>(
    config: &AtlasMapConfig,
    nodes: &[Node],
    read_text: &mut F,
) -> Result<Vec<ImportedPurposeRecord>, E>
where E: From<AtlasMapError>, F: FnMut(&Path) -> Result<String, E>,
Expand description

Extract approved legacy purpose records from an existing controlled scan.

The caller owns text-input cancellation and byte accounting through read_text; this function never starts a second repository scan.