fn focus_deep(mut menu: NavMenu, queries: &NavQueries) -> Vec<Entity> {
    let mut ret = Vec::with_capacity(4);
    loop {
        let last = match menu.non_inert_child() {
            Some(additional) => {
                ret.insert(0, additional);
                additional
            }
            None => return ret,
        };
        menu = match child_menu(last, queries) {
            Some((_, menu)) => menu.clone(),
            None => return ret,
        };
    }
}
/// Navigate downward the menu hierarchy N steps, and return the path to the
/// last level reached
Navigate downward the menu hierarchy N steps, and return the path to the
last level reached
Navigate downward the menu hierarchy N steps and return the path to the last level reached
fn focus_deep(mut menu: NavMenu, queries: &NavQueries) -> Vec<Entity> {
    let mut ret = Vec::with_capacity(4);
    loop {
        let last = match menu.non_inert_child() {
            Some(additional) => {
                ret.insert(0, additional);
                additional
            }
            None => return ret,
        };
        menu = match child_menu(last, queries) {
            Some((_, menu)) => menu.clone(),
            None => return ret,
        };
    }
}
fn focus_deep ( mut menu : NavMenu , queries : & NavQueries ) -> Vec < Entity > { let mut ret = Vec :: with_capacity ( 4 ) ; loop { let last = match menu . non_inert_child ( ) { Some ( additional ) => { ret . insert ( 0 , additional ) ; additional } None => return ret , } ; menu = match child_menu ( last , queries ) { Some ( ( _ , menu ) ) => menu . clone ( ) , None => return ret , } ; } }
Navigate downward the menu hierarchy N steps, and return the path to the
last level reached
Navigate downward the menu hierarchy N steps and return the path to the last level reached
menu
NavMenu
queries
&NavQueries
menu
NavMenu
queries
&NavQueries