pub fn page_up(&mut self) {
        if !self.data.is_empty() {
            if self.data.len() > 5 {
                let i = match self.state.selected() {
                    Some(i) => {
                        let up_five: isize = (i as isize) - 5;

                        if up_five >= 0 {
                            up_five as usize
                        } else {
                            0
                        }
                    }
                    None => 0,
                };
                self.state.select(Some(i));
            } else {
                self.state.select(Some(0));
            }
        }
    }
// Skip up 5 rows, no wrap
Skip up 5 rows, no wrap
Skip up 5 rows no wrap
pub fn page_up(&mut self) {
        if !self.data.is_empty() {
            if self.data.len() > 5 {
                let i = match self.state.selected() {
                    Some(i) => {
                        let up_five: isize = (i as isize) - 5;
                        if up_five >= 0 {
                            up_five as usize
                        } else {
                            0
                        }
                    }
                    None => 0,
                };
                self.state.select(Some(i));
            } else {
                self.state.select(Some(0));
            }
        }
    }
pub fn page_up ( & mut self ) { if ! self . data . is_empty ( ) { if self . data . len ( ) > 5 { let i = match self . state . selected ( ) { Some ( i ) => { let up_five : isize = ( i as isize ) - 5 ; if up_five >= 0 { up_five as usize } else { 0 } } None => 0 , } ; self . state . select ( Some ( i ) ) ; } else { self . state . select ( Some ( 0 ) ) ; } } }
Skip up 5 rows, no wrap
Skip up 5 rows no wrap
&mut self
&mut self