minidump-common 0.26.0

Some common types for working with minidump files.
Documentation
1
2
3
4
5
6
7
8
//! Utility functions, only pathname handling at the moment.

pub fn basename(f: &str) -> &str {
    match f.rfind(['/', '\\']) {
        None => f,
        Some(index) => &f[(index + 1)..],
    }
}