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: binary_search.rs
    path of file: ./repos/Algorithms/Searching/binary search/rust
    
    the code of the file until where you have to start completion: fn binary_se
    
fn main() {
    let mut v: Vec<i32> = vec![1, 2, 3, 4, 5, 9, 0];
    v.sort();
    let index = binary_search(&v, 9);
    if index != i32::MAX{
        println!("index of element is -> {}", index);
    }
    else {
        println!("Element not found");
    }
}