Skip to main content

load

Function load 

Source
pub fn load(root: &RepoRoot, path: &RepoPath) -> Result<Source>
Expand description

load reads a file under root as UTF-8 and returns it as a source, with its modification time in the key. It returns an I/O error when the file isn’t valid UTF-8.