pub enum ProblemStatus<'cost> {
    Uninitialized,
    Ready {
        blocks: Vec<ProblemBlock<'cost>>,
    },
    Solved,
}
Expand description

NllsProblem’s state

Variants§

§

Uninitialized

The problem is blank, at least one residual block must be added via NllsProblem::add_residual_block.

§

Ready

Fields

§blocks: Vec<ProblemBlock<'cost>>

The problem is ready for NllsProblem::solve call, but you may add more residual blocks via NllsProblem::add_residual_block.

§

Solved

The problem is solved, drop this one and create a new.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.