You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: segment_iterator.rs
    path of file: ./repos/pathivu/src/partition
    
    the code of the file until where you have to start completion: /*
 * Copyright 2019 Balaji Jinnah and 
    
    fn next(&mut self) -> Option<()> {
        if self.current_index >= self.entries.len() - 1 {
            // just incrementing one so that entry will give none.
            self.current_index = self.current_index + 1;
            return None;
        }
        self.current_index = self.current_index + 1;
        Some(())
    }