position_to_offset

Function position_to_offset 

Source
pub fn position_to_offset(position: Position, rope: &Rope) -> Option<usize>