pub enum ConversionError {
Show 13 variants
UnexpectedType {
expected: &'static str,
actual: &'static str,
},
UnsupportedReference,
InvalidUtf16,
NonFiniteNumber,
NonIntegralNumber,
IntegerOutOfRange,
InvalidArrayShape,
StringLimitExceeded {
actual: usize,
maximum: usize,
},
ArrayElementLimitExceeded {
actual: usize,
maximum: usize,
},
AggregateByteLimitExceeded {
required: usize,
maximum: usize,
},
NestedArrayUnsupported,
ConversionDepthExceeded {
depth: usize,
maximum: usize,
},
BorrowedValueDecode(DecodeError),
}Expand description
Failure while converting between callback-borrowed and owned semantic values.
Variants§
UnexpectedType
The source kind does not match the requested conversion.
Fields
UnsupportedReference
A callback reference requires an explicit reference-preserving path.
InvalidUtf16
A UTF-16 payload contained an unpaired surrogate.
NonFiniteNumber
A floating-point input was NaN or infinite.
NonIntegralNumber
A floating-point input had a fractional component.
IntegerOutOfRange
An integral value did not fit the requested integer type.
InvalidArrayShape
The source array dimensions and elements were inconsistent.
StringLimitExceeded
Text exceeded the configured conversion limit.
ArrayElementLimitExceeded
An array exceeded the configured element limit.
AggregateByteLimitExceeded
Conversion would exceed its aggregate owned-allocation budget.
NestedArrayUnsupported
Nested Excel arrays have no supported semantic representation.
ConversionDepthExceeded
Recursive conversion exceeded its configured depth.
BorrowedValueDecode(DecodeError)
A callback view became malformed while being decoded.
Trait Implementations§
Source§impl Clone for ConversionError
impl Clone for ConversionError
Source§impl Debug for ConversionError
impl Debug for ConversionError
Source§impl Display for ConversionError
impl Display for ConversionError
impl Eq for ConversionError
Source§impl Error for ConversionError
impl Error for ConversionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()