fn print_intervals(&mut self) -> Result<(), Error> {
        // Calculate new intervals.
        let intervals = self.scheduler.current_card_new_intervals();
        // Print header.
        self.print_header(format_args!("new intervals"))?;
        // Print intervals.
        writeln!(self.stdout, "fail:  {}", DurationFormatter(intervals[0]))?;
        writeln!(self.stdout, "hard:  {}", DurationFormatter(intervals[1]))?;
        writeln!(self.stdout, "okay:  {}", DurationFormatter(intervals[2]))?;
        writeln!(self.stdout, "good:  {}", DurationFormatter(intervals[3]))?;
        writeln!(self.stdout, "easy:  {}", DurationFormatter(intervals[4]))?;

        Ok(())
    }
/// Print next intervals of the card.
Print next intervals of the card.
Print next intervals of the card .
fn print_intervals(&mut self) -> Result<(), Error> {
        // Calculate new intervals.
        let intervals = self.scheduler.current_card_new_intervals();
        // Print header.
        self.print_header(format_args!("new intervals"))?;
        // Print intervals.
        writeln!(self.stdout, "fail:  {}", DurationFormatter(intervals[0]))?;
        writeln!(self.stdout, "hard:  {}", DurationFormatter(intervals[1]))?;
        writeln!(self.stdout, "okay:  {}", DurationFormatter(intervals[2]))?;
        writeln!(self.stdout, "good:  {}", DurationFormatter(intervals[3]))?;
        writeln!(self.stdout, "easy:  {}", DurationFormatter(intervals[4]))?;
        Ok(())
    }
fn print_intervals ( & mut self ) -> Result < ( ) , Error > { // Calculate new intervals. let intervals = self . scheduler . current_card_new_intervals ( ) ; // Print header. self . print_header ( format_args ! ( " " ) ) ? ; // Print intervals. writeln ! ( self stdout " " DurationFormatter ( intervals [ 0 ] ) ) ? ; writeln ! ( self stdout " " DurationFormatter ( intervals [ 1 ] ) ) ? ; writeln ! ( self stdout " " DurationFormatter ( intervals [ 2 ] ) ) ? ; writeln ! ( self stdout " " DurationFormatter ( intervals [ 3 ] ) ) ? ; writeln ! ( self stdout " " DurationFormatter ( intervals [ 4 ] ) ) ? ; Ok ( ( ) ) }
Print next intervals of the card.
Print next intervals of the card .
&mut self
&mut self