pub enum DecodeError {
Show 15 variants
MalformedType(u32),
UnsupportedType(u32),
InvalidError(i32),
NullStringPointer,
StringTooLong(usize),
UnterminatedString,
MalformedArrayDimensions {
rows: RW,
columns: COL,
},
ArrayTooLarge,
NullArrayPointer,
NestedArray,
ReferenceInArray,
InvalidSingleReferenceCount(u16),
NullReferencePointer,
EmptyMultiReference,
MalformedReferenceArea,
}Expand description
Why a raw callback value could not be represented as a safe borrowed view.
Variants§
MalformedType(u32)
The value tag contains unsupported or mutually inconsistent bits.
UnsupportedType(u32)
The value uses a valid Excel tag that this safe view does not represent.
InvalidError(i32)
The numeric Excel error code has no corresponding ExcelError.
NullStringPointer
A string-tagged value has a null payload pointer.
StringTooLong(usize)
A string length exceeds Excel’s documented UTF-16 limit.
UnterminatedString
A direct string lacked a terminator within Excel’s bounded limit.
MalformedArrayDimensions
Array dimensions were invalid or overflowed.
ArrayTooLarge
The validated array extent cannot be represented safely by Rust.
NullArrayPointer
An array-tagged value has a null element pointer.
NestedArray
An array element attempted to contain another array.
ReferenceInArray
An array element attempted to contain an Excel reference.
InvalidSingleReferenceCount(u16)
An xltypeSRef value did not contain exactly one area.
NullReferencePointer
A reference-tagged value has a null reference table pointer.
EmptyMultiReference
An xltypeRef value declared no reference areas.
MalformedReferenceArea
A reference area has invalid or out-of-range row or column bounds.
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
impl Eq for DecodeError
Source§impl Error for DecodeError
impl Error for DecodeError
1.30.0 · 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()