Enum varpro::model::errors::ModelError[][src]

pub enum ModelError {
    UnexpectedFunctionOutput {
        expected_length: usize,
        actual_length: usize,
    },
    ParameterNotInModel {
        parameter: String,
    },
    DerivativeIndexOutOfBounds {
        index: usize,
    },
    IncorrectParameterCount {
        required: usize,
        actual: usize,
    },
}

Errors pertaining to use errors of the [SeparableModel].

Variants

UnexpectedFunctionOutput

Base functions are expected to return a vector the same length as the location argument. A function did not adhere to that rule.

Fields of UnexpectedFunctionOutput

expected_length: usizeactual_length: usize
ParameterNotInModel

Indicates an evaluation for a parameter was requested that is not part of the model parameters

Fields of ParameterNotInModel

parameter: String
DerivativeIndexOutOfBounds

Indicates that the given derivative index is out of bounds.

Fields of DerivativeIndexOutOfBounds

index: usize
IncorrectParameterCount

It was tried to evaluate a model with an incorrect number of parameters

Fields of IncorrectParameterCount

required: usizeactual: usize

Trait Implementations

impl Clone for ModelError[src]

impl Debug for ModelError[src]

impl Display for ModelError[src]

impl Error for ModelError where
    Self: Debug + Display
[src]

impl ErrorCompat for ModelError[src]

impl<__T0, __T1> IntoError<ModelError> for UnexpectedFunctionOutput<__T0, __T1> where
    ModelError: Error + ErrorCompat,
    __T0: Into<usize>,
    __T1: Into<usize>, 
[src]

type Source = NoneError

The underlying error

impl<__T0> IntoError<ModelError> for ParameterNotInModel<__T0> where
    ModelError: Error + ErrorCompat,
    __T0: Into<String>, 
[src]

type Source = NoneError

The underlying error

impl<__T0> IntoError<ModelError> for DerivativeIndexOutOfBounds<__T0> where
    ModelError: Error + ErrorCompat,
    __T0: Into<usize>, 
[src]

type Source = NoneError

The underlying error

impl<__T0, __T1> IntoError<ModelError> for IncorrectParameterCount<__T0, __T1> where
    ModelError: Error + ErrorCompat,
    __T0: Into<usize>,
    __T1: Into<usize>, 
[src]

type Source = NoneError

The underlying error

impl PartialEq<ModelError> for ModelError[src]

impl StructuralPartialEq for ModelError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsErrorSource for T where
    T: 'static + Error
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,