Skip to main content

first_enabled

Function first_enabled 

Source
pub fn first_enabled(disabled: &[bool]) -> Option<usize>
Expand description

Returns the first enabled index, or None if all items are disabled.