method Path.extension
Extension of the file name without the dot (a.tar.gz -> gz); empty if none; .bashrc has none.
Example:
use std.io { Path }
fn main() io {
print(Path.of("/src/main.oxl").extension())
}Вывод
oxl
pub(api) fn extension() -> strС версии. 1.0.0-beta
Возвращает
str
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/io/io.oxl:936