pub enum XlsError {
Show 13 variants
Io(Error),
Cfb(CfbError),
Vba(VbaError),
StackLen,
Unrecognized {
typ: &'static str,
val: u8,
},
Password,
Len {
expected: usize,
found: usize,
typ: &'static str,
},
ContinueRecordTooShort,
EoStream(&'static str),
InvalidFormula {
stack_size: usize,
},
IfTab(usize),
Etpg(u8),
NoVba,
}
Expand description
An enum to handle Xls specific errors
Variants
Io(Error)
Io error
Cfb(CfbError)
Cfb error
Vba(VbaError)
Vba error
StackLen
Cannot parse formula, stack is too short
Unrecognized
Unrecognized data
Password
Workook is password protected
Len
Invalid length
ContinueRecordTooShort
Continue Record is too short
EoStream(&'static str)
End of stream
InvalidFormula
Fields
stack_size: usize
stack size
Invalid Formula
IfTab(usize)
Invalid or unknown iftab
Etpg(u8)
Invalid etpg
NoVba
No vba project
Trait Implementations
sourceimpl Error for XlsError
impl Error for XlsError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for XlsError
impl Send for XlsError
impl Sync for XlsError
impl Unpin for XlsError
impl !UnwindSafe for XlsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more