pub fn find_line_end(text: &Rope, cursor_byte: usize) -> usize
Returns the byte offset of the end of the line containing cursor_byte, excluding trailing newline characters (\r\n or \n).
cursor_byte
\r\n
\n