Skip to main content

boundary_before

Function boundary_before 

Source
pub fn boundary_before(text: &str, at: usize) -> usize
Expand description

The largest character boundary at or before at.

Boundary::before is this offset’s one author; a caller that wants the bytes on either side rather than the offset asks there.