pub fn trim_stacktrace<F>(stacktrace: &mut Stacktrace, f: F)where F: Fn(&Frame, &Stacktrace) -> bool,
A helper function to trim a stacktrace.