/// Get next search match in the specified direction.
Get next search match in the specified direction.
Get next search match in the specified direction .
pub fn search_next(
        &self,
        mut origin: Point<usize>,
        direction: Direction,
        side: Side,
        mut max_lines: Option<usize>,
    ) -> Option<Match> {
        origin = self.expand_wide(origin, direction);
        max_lines = max_lines.filter(|max_lines| max_lines + 1 < self.total_lines());
        match direction {
            Direction::Right => self.next_match_right(origin, side, max_lines),
            Direction::Left => self.next_match_left(origin, side, max_lines),
        }
    }
pub fn search_next ( & self , mut origin : Point < usize > , direction : Direction , side : Side , mut max_lines : Option < usize > , ) -> Option < Match > { origin = self . expand_wide ( origin , direction ) ; max_lines = max_lines . filter ( | max_lines | max_lines + 1 < self . total_lines ( ) ) ; match direction { Direction :: Right => self . next_match_right ( origin , side , max_lines ) , Direction :: Left => self . next_match_left ( origin , side , max_lines ) , } }
Get next search match in the specified direction.
Get next search match in the specified direction .
&self
origin
Point<usize>
direction
Direction
side
Side
max_lines
Option<usize>