std::io::path

has_extension

fn bool Path.has_extension(self, String extension)
Test if the path has the given extension, so given the path /foo/bar.c3
this would be true matching the extension "c3"

Parameters