pub fn for_each<F>(&self, first_iter: Option<gtk::TreeIter>, mut func: F)
    where
        F: FnMut(ChapterEntry) -> bool, // closure must return true to keep going
    {
        let iter = match first_iter {
            Some(first_iter) => first_iter,
            None => match self.store.get_iter_first() {
                Some(first_iter) => first_iter,
                None => return,
            },
        };

        while func(ChapterEntry::new(&self.store, &iter)) && self.store.iter_next(&iter) {}
    }
// Iterate over the chapters and apply func to all elements until the last
// or until func returns false
//
// If first_iter is_some, iterate from first_iter
Iterate over the chapters and apply func to all elements until the last
or until func returns false


Iterate over the chapters and apply func to all elements until the last or until func returns false
pub fn for_each<F>(&self, first_iter: Option<gtk::TreeIter>, mut func: F)
    where
        F: FnMut(ChapterEntry) -> bool, // closure must return true to keep going
    {
        let iter = match first_iter {
            Some(first_iter) => first_iter,
            None => match self.store.get_iter_first() {
                Some(first_iter) => first_iter,
                None => return,
            },
        };
        while func(ChapterEntry::new(&self.store, &iter)) && self.store.iter_next(&iter) {}
    }
pub fn for_each < F > ( & self , first_iter : Option < gtk :: TreeIter > , mut func : F ) where F : FnMut ( ChapterEntry ) -> bool , // closure must return true to keep going { let iter = match first_iter { Some ( first_iter ) => first_iter , None => match self . store . get_iter_first ( ) { Some ( first_iter ) => first_iter , None => return , } , } ; while func ( ChapterEntry :: new ( & self . store , & iter ) ) && self . store . iter_next ( & iter ) { } }
Iterate over the chapters and apply func to all elements until the last
or until func returns false
Iterate over the chapters and apply func to all elements until the last or until func returns false
&self
first_iter
Option<gtk::TreeIter>
func
F
&self
first_iter
Option<gtk::TreeIter>
func
F