Skip to main content

find_covering_index

Function find_covering_index 

Source
pub fn find_covering_index(
    source_timestamps: &[i64],
    target_timestamp: i64,
) -> Option<usize>
Expand description

Find the index in source timestamps that covers the target timestamp Uses binary search for efficiency