pub struct Outcome {
pub value: Value,
pub exactness: Exactness,
pub warnings: Vec<Warning>,
pub assumptions: Vec<Assumption>,
pub error_estimate: Option<ErrorEstimate>,
pub trace: Option<Trace>,
pub conversions: Vec<Conversion>,
}Expand description
A successful invocation outcome.
Fields§
§value: Value§exactness: Exactness§warnings: Vec<Warning>§assumptions: Vec<Assumption>§error_estimate: Option<ErrorEstimate>§trace: Option<Trace>§conversions: Vec<Conversion>Implementations§
Source§impl Outcome
impl Outcome
pub fn new(value: Value, exactness: Exactness) -> Outcome
pub fn exact(value: Value) -> Outcome
pub fn rounded(value: Value) -> Outcome
pub fn approximate(value: Value) -> Outcome
pub fn with_warning(self, warning: Warning) -> Outcome
pub fn with_assumption(self, assumption: Assumption) -> Outcome
pub fn with_error_estimate(self, estimate: ErrorEstimate) -> Outcome
pub fn with_trace(self, trace: Trace) -> Outcome
pub fn with_conversion(self, conversion: Conversion) -> Outcome
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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