pub fn file_format_declared(path: &Path) -> Option<Format>
The format path DECLARES — by extension or its package scope’s "type" — or None when only its syntax can tell.
path
"type"
None