pub struct Output<R, S>where
S: UserState,{
pub result: R,
pub state: State<S>,
}Expand description
The output of a calculation
The calculation output is user defined in the finalise step of the [Calculation] trait, but
this is presented as a good verbose option in situations where the caller wants granular
information about the calculation and its progress. It returns the entire original problem,
solver and state object.
Fields§
§result: RThe original calculation carried out by trellis
state: State<S>Solver state after the last iterationn
Trait Implementations§
Auto Trait Implementations§
impl<R, S> Freeze for Output<R, S>
impl<R, S> RefUnwindSafe for Output<R, S>
impl<R, S> Send for Output<R, S>
impl<R, S> Sync for Output<R, S>
impl<R, S> Unpin for Output<R, S>
impl<R, S> UnwindSafe for Output<R, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more