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: unicode.rs
    path of file: ./repos/LocustDB/src/bin/repl
    
    the code of the file until where you have to start completion: // original source: https://github.com/lintje/lintje/blob/501aab06e19008e787237438a69ac961f38bb4b7
// https://tomdebruijn.com/posts/rust-string-length-width-calculations/
use unicode_segmentation::UnicodeSegmentation;
use unicode_width::UnicodeWidthSt
    
pub fn display_width(string: &str) -> usize {
    // String expressed as a vec of Unicode characters. Characters with accents and emoji may
    // be multiple characters combined.
    let unicode_chars = string.graphemes(true);
    let mut width = 0;
    for c in unicode_chars.into_iter() {
        width += display_width_char(c);
    }
    width
}