Skip to main content

IterationOutput

Trait IterationOutput 

Source
pub trait IterationOutput {
    // Provided methods
    fn write_output(&mut self) { ... }
    fn format_row(
        &mut self,
        _data: &IpoptDataHandle,
        _cq: &IpoptCqHandle,
    ) -> String { ... }
}
Expand description

Strategy that emits one row of the iter-by-iter table. The default write_output is a no-op so structural unit tests can drive the algorithm without an output sink. Phase 7 ports OrigIterationOutput with the full upstream column format.

Provided Methods§

Source

fn write_output(&mut self)

Source

fn format_row(&mut self, _data: &IpoptDataHandle, _cq: &IpoptCqHandle) -> String

Format the next iteration row into a fresh String, given the current data + CQ snapshots. Default returns an empty string. Mirrors IpOrigIterationOutput::WriteOutput minus the journalist write — callers route the returned line wherever they want (stdout, file, log buffer for tests).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§