Skip to main content

containing_excerpt_index

Function containing_excerpt_index 

Source
pub fn containing_excerpt_index(
    excerpts: &[Excerpt],
    cursor_row: u32,
) -> Option<usize>
Expand description

Index of the excerpt whose composed-row range contains cursor_row. None when the cursor sits above the first excerpt (only possible on empty views or row 0 with no excerpts).