Function re_crash_handler::callstack_from

source ·
pub fn callstack_from(start_patterns: &[&str]) -> String
Expand description

Get a nicely formatted callstack.

You can give this function a list of substrings to look for, e.g. names of functions. If any of these substrings matches, anything before that is removed from the callstack. For example:

fn print_callstack() {
    eprintln!("{}", callstack_from(&["print_callstack"]));
}