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 Fail for XlsError
impl Fail for XlsError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreAuto 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