Skip to main content

find_free_slot

Function find_free_slot 

Source
pub fn find_free_slot(
    len: usize,
    is_occupied: impl Fn(usize) -> bool,
) -> Result<usize, &'static str>