Skip to main content

load

Function load 

Source
pub fn load(path: &Path, limits: &Limits) -> Result<Snapshot, Error>
Expand description

Reads one side of a comparison: a content pack when path is a file, which is opened and fully verified with the default bounds first, and otherwise a source tree, which is loaded and validated with the default bounds. The snapshot holds at most limits.maximum_ids IDs; see Limits for what that bounds.

§Errors

Returns the source diagnostics, the pack’s first problem, or Error::TooManyIds.