Skip to main content

search_prev_next

Function search_prev_next 

Source
pub fn search_prev_next<'c, 'a>(
    keys: &'c KeyColumns<'a>,
    run: &KeyRun,
    frame_no: f32,
    hint: &mut u32,
) -> Option<(Key<'c, 'a>, Option<Key<'c, 'a>>)>
Expand description

The key at or before frame_no and, between two keys, the one after it. A frame on a key reads that key alone, and a frame before the first key reads the first key alone. hint is the run’s cursor, as Frames::locate keeps it.