fn move_iter(model: &TreeModel, tree_path: &TreePath, column_header: i32, go_next: bool) -> TreePath {
    let tree_iter = model.iter(tree_path).unwrap();

    assert!(model.get::<bool>(&tree_iter, column_header));

    if go_next {
        if !model.iter_next(&tree_iter) {
            panic!("Found only header!");
        }
    } else {
        if !model.iter_previous(&tree_iter) {
            panic!("Found only header!");
        }
    }

    loop {
        if go_next {
            if !model.iter_next(&tree_iter) {
                break;
            }
        } else {
            if !model.iter_previous(&tree_iter) {
                break;
            }
        }

        if model.get::<bool>(&tree_iter, column_header) {
            break;
        }
    }
    model.path(&tree_iter)
}
/// Moves iterator to previous/next header
Moves iterator to previous/next header
Moves iterator to previous / next header
fn move_iter(model: &TreeModel, tree_path: &TreePath, column_header: i32, go_next: bool) -> TreePath {
    let tree_iter = model.iter(tree_path).unwrap();
    assert!(model.get::<bool>(&tree_iter, column_header));
    if go_next {
        if !model.iter_next(&tree_iter) {
            panic!("Found only header!");
        }
    } else {
        if !model.iter_previous(&tree_iter) {
            panic!("Found only header!");
        }
    }
    loop {
        if go_next {
            if !model.iter_next(&tree_iter) {
                break;
            }
        } else {
            if !model.iter_previous(&tree_iter) {
                break;
            }
        }
        if model.get::<bool>(&tree_iter, column_header) {
            break;
        }
    }
    model.path(&tree_iter)
}
fn move_iter ( model : & TreeModel , tree_path : & TreePath , column_header : i32 , go_next : bool ) -> TreePath { let tree_iter = model . iter ( tree_path ) . unwrap ( ) ; assert ! ( model get bool ( tree_iter column_header ) ) ; if go_next { if ! model . iter_next ( & tree_iter ) { panic ! ( " " ) ; } } else { if ! model . iter_previous ( & tree_iter ) { panic ! ( " " ) ; } } loop { if go_next { if ! model . iter_next ( & tree_iter ) { break ; } } else { if ! model . iter_previous ( & tree_iter ) { break ; } } if model . get :: < bool > ( & tree_iter , column_header ) { break ; } } model . path ( & tree_iter ) }
Moves iterator to previous/next header
Moves iterator to previous / next header
model
&TreeModel
tree_path
&TreePath
column_header
i32
go_next
bool
model
&TreeModel
tree_path
&TreePath
column_header
i32
go_next
bool