Enum expr::EvalError[][src]

pub enum EvalError {
Show 47 variants DateBinOutOfRange(String), DivisionByZero, Unsupported { feature: String, issue_no: Option<usize>, }, FloatOverflow, FloatUnderflow, NumericFieldOverflow, Float32OutOfRange, Float64OutOfRange, Int16OutOfRange, Int32OutOfRange, Int64OutOfRange, OidOutOfRange, IntervalOutOfRange, TimestampOutOfRange, InvalidBase64Equals, InvalidBase64Symbol(char), InvalidBase64EndSequence, InvalidTimezone(String), InvalidTimezoneInterval, InvalidTimezoneConversion, InvalidDimension { max_dim: usize, val: i64, }, InvalidArray(InvalidArrayError), InvalidEncodingName(String), InvalidHashAlgorithm(String), InvalidByteSequence { byte_sequence: String, encoding_name: String, }, InvalidJsonbCast { from: String, to: String, }, InvalidRegex(String), InvalidRegexFlag(char), InvalidParameterValue(String), NegSqrt, UnknownUnits(String), UnsupportedUnits(StringString), UnterminatedLikeEscapeSequence, Parse(ParseError), ParseHex(ParseHexError), Internal(String), InfinityOutOfDomain(String), NegativeOutOfDomain(String), ZeroOutOfDomain(String), OutOfDomain(DomainLimitDomainLimitString), ComplexOutOfRange(String), MultipleRowsFromSubquery, Undefined(String), LikePatternTooLong, StringValueTooLong { target_type: String, length: usize, }, MultidimensionalArrayRemovalNotSupported, IncompatibleArrayDimensions { dims: Option<(usize, usize)>, },
}

Variants

DateBinOutOfRange(String)

Tuple Fields

0: String

DivisionByZero

Unsupported

Fields

feature: String
issue_no: Option<usize>

FloatOverflow

FloatUnderflow

NumericFieldOverflow

Float32OutOfRange

Float64OutOfRange

Int16OutOfRange

Int32OutOfRange

Int64OutOfRange

OidOutOfRange

IntervalOutOfRange

TimestampOutOfRange

InvalidBase64Equals

InvalidBase64Symbol(char)

Tuple Fields

0: char

InvalidBase64EndSequence

InvalidTimezone(String)

Tuple Fields

0: String

InvalidTimezoneInterval

InvalidTimezoneConversion

InvalidDimension

Fields

max_dim: usize
val: i64

InvalidArray(InvalidArrayError)

Tuple Fields

InvalidEncodingName(String)

Tuple Fields

0: String

InvalidHashAlgorithm(String)

Tuple Fields

0: String

InvalidByteSequence

Fields

byte_sequence: String
encoding_name: String

InvalidJsonbCast

Fields

from: String
to: String

InvalidRegex(String)

Tuple Fields

0: String

InvalidRegexFlag(char)

Tuple Fields

0: char

InvalidParameterValue(String)

Tuple Fields

0: String

NegSqrt

UnknownUnits(String)

Tuple Fields

0: String

UnsupportedUnits(StringString)

Tuple Fields

0: String
1: String

UnterminatedLikeEscapeSequence

Parse(ParseError)

Tuple Fields

ParseHex(ParseHexError)

Tuple Fields

Internal(String)

Tuple Fields

0: String

InfinityOutOfDomain(String)

Tuple Fields

0: String

NegativeOutOfDomain(String)

Tuple Fields

0: String

ZeroOutOfDomain(String)

Tuple Fields

0: String

OutOfDomain(DomainLimitDomainLimitString)

Tuple Fields

2: String

ComplexOutOfRange(String)

Tuple Fields

0: String

MultipleRowsFromSubquery

Undefined(String)

Tuple Fields

0: String

LikePatternTooLong

StringValueTooLong

Fields

target_type: String
length: usize

MultidimensionalArrayRemovalNotSupported

IncompatibleArrayDimensions

Fields

Implementations

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

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

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

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Adds names and types of the fields of the struct or enum to rti. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

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

Serialize this value into the given Serde serializer. 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

Formats an object with the “alternative” format ({:#}) and returns it.

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

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

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

Converts the given value to a String. 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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more