Enum rgsl::Value

source ·
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.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts this type into the (usually inferred) input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.