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: list_view.rs
    path of file: ./repos/termimad/src/views
    
    the code of the file until where you have to start completion: use {
    crate::{
        crossterm::{
            cursor::MoveTo,
            queue,
            style::{
                Color,
                SetBackgroundColor,
            },
            terminal::{
                Clear,
                ClearType,
            },
        },
        compute_scrollbar,
        errors::Result,
        gray,
        Alignment,
        Area,
        CompoundStyle,
        MadSkin,
        Spacing,
    },
    std::{
        cmp::Ordering,
        io::{
            stdout,
            Write,
        },
    },
};

pub struct ListViewCell<'t> {
    con: String,
    style: &'t CompoundStyle,
    width: usize, // length of content in chars
}

p
    
    pub fn new(area: Area, columns: Vec<ListViewColumn<'t, T>>, skin: &'t MadSkin) -> Self {
        let mut titles: Vec<Title> = Vec::new();
        for (column_idx, column) in columns.iter().enumerate() {
            if let Some(last_title) = titles.last_mut() {
                if columns[last_title.columns[0]].title == column.title {
                    // we merge those columns titles
                    last_title.columns.push(column_idx);
                    continue;
                }
            }
            // this is a new title
            titles.push(Title {
                columns: vec![column_idx],
            });
        }
        Self {
            titles,
            columns,
            rows: Vec::new(),
            area,
            scroll: 0,
            skin,
            filter: None,
            displayed_rows_count: 0,
            row_order: None,
            selection: None,
            selection_background: gray(5),
        }
    }