lsp_core::prelude

Function position_to_offset

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