Skip to main content

first_enabled

Function first_enabled 

Source
pub fn first_enabled(
    len: usize,
    disabled: impl Fn(usize) -> bool,
) -> Option<usize>
Expand description

The first enabled index in 0..len (the target of a Home key), or None when every item is disabled or the collection is empty.