fn print_history(&mut self) -> Result<(), Error> {
        // Print header.
        self.print_header(format_args!("history"))?;
        // Print all the reviews.
        for (n, review) in self.scheduler.current_metacard().history.iter().enumerate() {
            writeln!(self.stdout, "review {}:", n)?;
            writeln!(self.stdout, "    time:            {}", review.time.to_rfc2822())?;
            writeln!(self.stdout, "    due:             {}", review.due.to_rfc2822())?;
            writeln!(self.stdout, "    score:           {}", review.score)?;
            writeln!(self.stdout, "    ended interval:  {}", DurationFormatter(review.ended_interval))?;
            writeln!(self.stdout, "    state before:    {:?}", review.state_before)?;
            writeln!(self.stdout, "    ease before:     {:?}", review.ease_before)?;
        }

        Ok(())
    }
/// Print history of the card.
Print history of the card.
Print history of the card .
fn print_history(&mut self) -> Result<(), Error> {
        // Print header.
        self.print_header(format_args!("history"))?;
        // Print all the reviews.
        for (n, review) in self.scheduler.current_metacard().history.iter().enumerate() {
            writeln!(self.stdout, "review {}:", n)?;
            writeln!(self.stdout, "    time:            {}", review.time.to_rfc2822())?;
            writeln!(self.stdout, "    due:             {}", review.due.to_rfc2822())?;
            writeln!(self.stdout, "    score:           {}", review.score)?;
            writeln!(self.stdout, "    ended interval:  {}", DurationFormatter(review.ended_interval))?;
            writeln!(self.stdout, "    state before:    {:?}", review.state_before)?;
            writeln!(self.stdout, "    ease before:     {:?}", review.ease_before)?;
        }
        Ok(())
    }
fn print_history ( & mut self ) -> Result < ( ) , Error > { // Print header. self . print_header ( format_args ! ( " " ) ) ? ; // Print all the reviews. for ( n , review ) in self . scheduler . current_metacard ( ) . history . iter ( ) . enumerate ( ) { writeln ! ( self stdout " " n ) ? ; writeln ! ( self stdout " " review time to_rfc2822 ( ) ) ? ; writeln ! ( self stdout " " review due to_rfc2822 ( ) ) ? ; writeln ! ( self stdout " " review score ) ? ; writeln ! ( self stdout " " DurationFormatter ( review ended_interval ) ) ? ; writeln ! ( self stdout " " review state_before ) ? ; writeln ! ( self stdout " " review ease_before ) ? ; } Ok ( ( ) ) }
Print history of the card.
Print history of the card .
&mut self
&mut self