pub fn declared_format(path: &Path, table: &FormatTable) -> Option<String>Expand description
The format id a file’s extension declares, when the table knows it.
A path with no extension falls back to the table’s exact basename
entries, so a file named exactly .env still declares its format.
Needs no file access, so it works for a file the run cannot read.