Skip to main content

ext_kind

Function ext_kind 

Source
pub fn ext_kind(full: Option<&str>) -> String
Expand description

The source kind: the extension of the LAST path segment, without the dot, or NONE when that segment has no dot.

It must be segment-scoped. Matching the whole path makes a dot in a parent folder (a.d/foo) produce a kind that is not NONE, so the implicit-extension search is skipped and an extensionless reference under a dotted folder is wrongly reported as missing.