Skip to main content

export_by_project

Function export_by_project 

Source
pub fn export_by_project(layout: &Layout) -> Result<BTreeMap<String, String>>
Expand description

The same lines as export, grouped by project, from one read.

export filters a whole-corpus read down to one project, so digesting every project separately re-read the corpus once per project: quadratic in the project count, and six seconds on a tracker with a hundred of them. The rows are built by the same function, so a project’s text here is byte for byte what export(layout, Some(project)) returns, and the digests taken from it do not move.

§Errors

Returns an error if the corpus cannot be read.