Skip to main content

Solution

Struct Solution 

Source
pub struct Solution<V: Variable> {
    pub values: Vec<V>,
    pub solved: Vec<Group>,
    pub at_limit: Vec<usize>,
    pub iterations: usize,
    pub phases: Vec<Phase>,
    pub evaluations: usize,
    pub enclosure: Enclosure<V>,
    pub structure: Structure,
}
Expand description

Where a solve put the blocks, and how it went.

Fields§

§values: Vec<V>§solved: Vec<Group>

The groups moved: those a preference pulled, whose constraints did not hold, or that hang off a group that moved.

§at_limit: Vec<usize>

The limits the solve held at their bounds, by index.

§iterations: usize

The most steps any group took, and per phase the worst of the groups: why it stopped, after how many steps, the largest residual left.

§phases: Vec<Phase>§evaluations: usize

How many times the solve made the terms — every group’s at once: the work it took, its enclosure’s apart.

§enclosure: Enclosure<V>

An enclosure of a true solution near where the solved groups ended (see System::enclose) — of those only: the others were not moved, and enclosing them is the caller’s to ask (System::enclose_rest). Of none, for a solve not proven (System::solve_unproven).

§structure: Structure

The groups it was solved in: what a solve of the same system a hair away can take as it is (System::solve_unproven_in).

Trait Implementations§

Source§

impl<V: Debug + Variable> Debug for Solution<V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<V> Freeze for Solution<V>

§

impl<V> RefUnwindSafe for Solution<V>
where V: RefUnwindSafe,

§

impl<V> Send for Solution<V>
where V: Send,

§

impl<V> Sync for Solution<V>
where V: Sync,

§

impl<V> Unpin for Solution<V>
where V: Unpin,

§

impl<V> UnsafeUnpin for Solution<V>

§

impl<V> UnwindSafe for Solution<V>
where V: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.