Revision control
Copy as Markdown
Other Tools
//! Utility functions, only pathname handling at the moment.
pub fn basename(f: &str) -> &str {
match f.rfind(['/', '\\']) {
None => f,
Some(index) => &f[(index + 1)..],
}
}