Skip to main content

read_doc

Function read_doc 

Source
fn read_doc(file: &Path, missing_empty: bool) -> Result<DocumentMut, String>
Expand description

The file’s text as toml_edit holds it, comments and all. A file not there yet reads as empty when missing_empty; one there but unreadable (its rights, an encoding other than UTF-8) is an error: written over, every project would go.