pub fn find_boundary(
    map: &DisplaySnapshot,
    from: DisplayPoint,
    find_range: FindRange,
    is_boundary: impl FnMut(char, char) -> bool
) -> DisplayPoint
Expand description

Scans for a boundary following the given start point until a boundary is found, indicated by the given predicate returning true. The predicate is called with the character to the left and right of the candidate boundary location, and will be called with \n characters indicating the start or end of a line.