You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/rustig/lib/panic_analysis/src
    
    the code of the file until where you have to start completion: // (C) COPYRIGHT 2018 TECHNOLUTION BV, GOUDA NL

// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

mod binary;
mod filter;
mod graph_output;
mod marker;
mod panic_calls;
mod patterns;

#[cfg(test)]
pub mod test_utils;

extern crate callgraph;

#[macro_use]
extern crate error_chain;

extern crate gimli;

use callgraph::*;

use callgraph::petgraph::prelude::NodeIndex;
use callgraph::petgraph::stable_graph::StableGraph;
use std::cell::Cell;
use std::cell::RefCell;
use std::rc::Rc;

use errors::*;
use std::fmt;
use std::fmt::Display;
use std::fmt::Formatter;

#[derive(Debug, Clone)]
pub enum IntermediateBacktrace {
    UpwardTrace(Vec<NodeIndex<u32>>),
    NoTrac
    
    fn fn_whitelist_matching_same_version() {
        let capstone = Capstone::new()
            .x86()
            .mode(capstone::arch::x86::ArchMode::Mode64)
            .detail(true)
            .build()
            .expect("Failed to construct disassembler");

        let prc = Procedure {
            name: "name".to_string(),
            linkage_name: "linkage_name::name".to_string(),
            linkage_name_demangled: "linkage_name_demangled::name".to_string(),
            defining_crate: Crate {
                name: "crate".to_string(),
                version: Some("1.2.3".to_string()),
            },
            start_address: 0x1240,
            size: 0x40,
            location: None,
            attributes: (),
            disassembly: capstone.disasm_all(&[], 0x1240).unwrap(),
        };

        let whitelist_filter = FunctionWhiteListEntry {
            function_name: "name".to_string(),
            crate_name: Some("crate".to_string()),
            crate_version: FunctionWhitelistCrateVersion::Loose("1.2.3".to_string()),
        };

        assert!(whitelist_filter.matches_procedure(&prc));
    }