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

Scans for a boundary preceding the given start point from 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. If FindRange::SingleLine is specified and no boundary is found before the start of the current line, the start of the current line will be returned.