Skip to main content

is_generated_file

Function is_generated_file 

Source
pub fn is_generated_file(path: &Path, source: &str) -> bool
Expand description

Whether the file at path with the text source is generated code: a generator writes it again on its next run, so an edit of it does not last.