pub fn find_next_visible_comment(&self, start_id: usize, go_left: bool) -> usize {
        if go_left {
            // ->
            (start_id + 1..self.len())
                .find(|&id| self.get_comment_component(id).is_visible())
                .unwrap_or_else(|| self.len())
        } else {
            // <-
            (0..start_id)
                .rfind(|&id| self.get_comment_component(id).is_visible())
                .unwrap_or(start_id)
        }
    }
/// Return the id of the next visible comment
Return the id of the next visible comment
Return the id of the next visible comment
pub fn find_next_visible_comment(&self, start_id: usize, go_left: bool) -> usize {
        if go_left {
            // ->
            (start_id + 1..self.len())
                .find(|&id| self.get_comment_component(id).is_visible())
                .unwrap_or_else(|| self.len())
        } else {
            // <-
            (0..start_id)
                .rfind(|&id| self.get_comment_component(id).is_visible())
                .unwrap_or(start_id)
        }
    }
pub fn find_next_visible_comment ( & self , start_id : usize , go_left : bool ) -> usize { if go_left { // -> ( start_id + 1 .. self . len ( ) ) . find ( | & id | self . get_comment_component ( id ) . is_visible ( ) ) . unwrap_or_else ( | | self . len ( ) ) } else { // <- ( 0 .. start_id ) . rfind ( | & id | self . get_comment_component ( id ) . is_visible ( ) ) . unwrap_or ( start_id ) } }
Return the id of the next visible comment
Return the id of the next visible comment
&self
start_id
usize
go_left
bool