Skip to main content

of_path

Function of_path 

Source
pub fn of_path(path: &Path) -> Option<Known>
Expand description

The language path is written in.

A whole name beats an extension — Dockerfile is not a .file — and between extensions the longest match wins, so .d.ts would beat .ts rather than racing it.