Enum amfnengine::ErrorType[]

pub enum ErrorType {
Show variants None, LeftParen, RightParen, Operator, Operand, InvalidOperator, InvalidOperand, InvalidToken, MissingOperand, RightBracket, InvalidSymbol, DivideByZero, Integer, Decimal, String, Date, Alpha, Function, Index, Incomplete, CalcInterest, CalcPeriods, CalcPrincipal, Cashflow, CfName, Element, Json,
}

Error type enumeration.

Variants

None

No error.

LeftParen

Missing left parenthesis.

RightParen

Missing right parenthesis.

Operator

Operator expected.

Operand

Operand expected.

InvalidOperator

Invalid operator.

InvalidOperand

Invalid operand.

InvalidToken

Invalid token.

MissingOperand

Missing operand.

RightBracket

Missing right bracket.

InvalidSymbol

Invalid symbol.

DivideByZero

Divide by zero.

Integer

Integer expected.

Decimal

Decimal expected.

String

&str expected.

Date

Date expected.

Alpha

Alpha expected.

Function

Invalid function.

Index

Invalid index value.

Incomplete

Incomplete expression.

CalcInterest

Cannot calculate interest.

CalcPeriods

Cannot calculate periods.

CalcPrincipal

Cannot calculate principal.

Cashflow

Cashflow not selected.

CfName

Invalid cashflow name.

Element

Element not selected.

Json

Invalid Json.

Trait Implementations

impl Clone for ErrorType

fn clone(&self) -> ErrorType

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ErrorType

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl PartialEq<ErrorType> for ErrorType

fn eq(&self, other: &ErrorType) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Copy for ErrorType

impl Eq for ErrorType

impl StructuralEq for ErrorType

impl StructuralPartialEq for ErrorType

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.