fn stem(path: []const u8) []const u8
[src]
Returns the last component of this path without its extension (if any):
- “hello/world/lib.tar.gz” ⇒ “lib.tar”
- “hello/world/lib.tar” ⇒ “lib”
- “hello/world/lib” ⇒ “lib”
fn stem(path: []const u8) []const u8
Returns the last component of this path without its extension (if any):