Skip to main content

position_to_char

Function position_to_char 

Source
pub fn position_to_char(rope: &Rope, pos: Position) -> usize
Expand description

Converts a position to a char offset, clamping line and column into the document.