fn build_lines(&mut self) {
        let mut lines: Vec<Line> = vec![];
        let mut item_count: usize = 0;
        for item in self.items {
            let mut line = Line::new(item.to_string(), self.pointer);

            if let Some(pointer) = self.not_selected_pointer {
                line.not_selected_pointer(pointer);
            }

            if line.len() > self.longest_item_len {
                self.longest_item_len = line.len()
            }
            lines.push(line);
            item_count += 1;
        }
        self.lines = lines;
        self.item_count = item_count;
    }
/// Builds the lines and store them for later usage. item_count and longest_item_len is initialized.
Builds the lines and store them for later usage.
Builds the lines and store them for later usage .
fn build_lines(&mut self) {
        let mut lines: Vec<Line> = vec![];
        let mut item_count: usize = 0;
        for item in self.items {
            let mut line = Line::new(item.to_string(), self.pointer);
            if let Some(pointer) = self.not_selected_pointer {
                line.not_selected_pointer(pointer);
            }
            if line.len() > self.longest_item_len {
                self.longest_item_len = line.len()
            }
            lines.push(line);
            item_count += 1;
        }
        self.lines = lines;
        self.item_count = item_count;
    }
fn build_lines ( & mut self ) { let mut lines : Vec < Line > = vec ! [ ] ; let mut item_count : usize = 0 ; for item in self . items { let mut line = Line :: new ( item . to_string ( ) , self . pointer ) ; if let Some ( pointer ) = self . not_selected_pointer { line . not_selected_pointer ( pointer ) ; } if line . len ( ) > self . longest_item_len { self . longest_item_len = line . len ( ) } lines . push ( line ) ; item_count += 1 ; } self . lines = lines ; self . item_count = item_count ; }
Builds the lines and store them for later usage.
Builds the lines and store them for later usage .
&mut self
&mut self