fn filter_unknown(trace: &[StackFrame]) -> Vec<StackFrame> {
    let unknown = StackFrame::unknown_c_function();
    let vec: Vec<StackFrame> = trace.iter().filter(|&x| x != &unknown).cloned().collect();
    if vec.is_empty() {
        vec![unknown]
    } else {
        vec
    }
}
/// Filter out unknown functions from stack trace before reporting.
/// Most of the time it isn't useful to include the "unknown C function" stacks.
Filter out unknown functions from stack trace before reporting.
Most of the time it isn't useful to include the "unknown C function" stacks.
Filter out unknown functions from stack trace before reporting . Most of the time it isn ' t useful to include the " unknown C function " stacks .
fn filter_unknown(trace: &[StackFrame]) -> Vec<StackFrame> {
    let unknown = StackFrame::unknown_c_function();
    let vec: Vec<StackFrame> = trace.iter().filter(|&x| x != &unknown).cloned().collect();
    if vec.is_empty() {
        vec![unknown]
    } else {
        vec
    }
}
fn filter_unknown ( trace : & [ StackFrame ] ) -> Vec < StackFrame > { let unknown = StackFrame :: unknown_c_function ( ) ; let vec : Vec < StackFrame > = trace . iter ( ) . filter ( | & x | x != & unknown ) . cloned ( ) . collect ( ) ; if vec . is_empty ( ) { vec ! [ unknown ] } else { vec } }
Filter out unknown functions from stack trace before reporting.
Filter out unknown functions from stack trace before reporting .
trace
&[StackFrame]
trace
&[StackFrame]