pub fn next_ents(&self) -> Vec<Entry> {
        let off = self.first_index().max(self.applied + 1);
        if self.committed + 1 > off {
            self.slice(off, self.committed + 1, self.max_next_ents_size)
                .map_err(|err| panic!("unexpected error when getting unapplied entries ({})", err))
                .unwrap()
        } else {
            vec![]
        }
    }
/// next_ents returns all the available entries for execution.
/// If applied is smaller than the index of snapshot, it returns all committed
/// entries after the index of snapshot.
/// ME: snapshot <= applied <= commit or applied <= snapshot <= commit
next_ents returns all the available entries for execution.
If applied is smaller than the index of snapshot, it returns all committed
entries after the index of snapshot.
ME: snapshot <= applied <= commit or applied <= snapshot <= commit
next_ents returns all the available entries for execution . If applied is smaller than the index of snapshot it returns all committed entries after the index of snapshot . ME : snapshot < = applied < = commit or applied < = snapshot < = commit
pub fn next_ents(&self) -> Vec<Entry> {
        let off = self.first_index().max(self.applied + 1);
        if self.committed + 1 > off {
            self.slice(off, self.committed + 1, self.max_next_ents_size)
                .map_err(|err| panic!("unexpected error when getting unapplied entries ({})", err))
                .unwrap()
        } else {
            vec![]
        }
    }
pub fn next_ents ( & self ) -> Vec < Entry > { let off = self . first_index ( ) . max ( self . applied + 1 ) ; if self . committed + 1 > off { self . slice ( off , self . committed + 1 , self . max_next_ents_size ) . map_err ( | err | panic ! ( " " err ) ) . unwrap ( ) } else { vec ! [ ] } }
next_ents returns all the available entries for execution.
next_ents returns all the available entries for execution .
&self