pub enum Value {
Show 36 variants
Success,
Failure,
Continue,
Domain,
Range,
Fault,
Invalid,
Failed,
Factorization,
Sanity,
NoMemory,
BadFunction,
RunAway,
MaxIteration,
ZeroDiv,
BadTolerance,
Tolerance,
UnderFlow,
OverFlow,
Loss,
Round,
BadLength,
NotSquare,
Singularity,
Diverge,
Unsupported,
Unimplemented,
Cache,
Table,
NoProgress,
NoProgressJacobian,
ToleranceF,
ToleranceX,
ToleranceG,
EOF,
Unknown(i32),
}
Variants
Success
Failure
Continue
iteration has not converged
Domain
input domain error, e.g sqrt(-1)
Range
output range error, e.g. exp(1e100)
Fault
invalid pointer
Invalid
invalid argument supplied by user
Failed
generic failure
Factorization
factorization failed
Sanity
sanity check failed - shouldn’t happen
NoMemory
malloc failed
BadFunction
problem with user-supplied function
RunAway
iterative process is out of control
MaxIteration
exceeded max number of iterations
ZeroDiv
tried to divide by zero
BadTolerance
user specified an invalid tolerance
Tolerance
failed to reach the specified tolerance
UnderFlow
underflow
OverFlow
overflow
Loss
loss of accuracy
Round
failed because of roundoff error
BadLength
matrix, vector lengths are not conformant
NotSquare
matrix not square
Singularity
apparent singularity detected
Diverge
integral or series is divergent
Unsupported
requested feature is not supported by the hardware
Unimplemented
requested feature not (yet) implemented
Cache
cache limit exceeded
Table
table limit exceeded
NoProgress
iteration is not making progress towards solution
NoProgressJacobian
jacobian evaluations are not improving the solution
ToleranceF
cannot reach the specified tolerance in F
ToleranceX
cannot reach the specified tolerance in X
ToleranceG
cannot reach the specified tolerance in gradient
EOF
cannot reach the specified tolerance in gradient
Unknown(i32)
Unknown value.
Implementations
sourceimpl Value
impl Value
pub fn is_success(self) -> bool
Trait Implementations
sourceimpl PartialOrd<Value> for Value
impl PartialOrd<Value> for Value
sourcefn partial_cmp(&self, other: &Value) -> Option<Ordering>
fn partial_cmp(&self, other: &Value) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Value
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more