pub enum OdsError {
Show 14 variants
Io(Error),
Zip(ZipError),
Xml(Error),
XmlAttr(AttrError),
Parse(ParseError),
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
ParseBool(ParseBoolError),
InvalidMime(Vec<u8>),
FileNotFound(&'static str),
Eof(&'static str),
Mismatch {
expected: &'static str,
found: String,
},
Password,
WorksheetNotFound(String),
}
Expand description
An enum for ods specific errors
Variants§
Io(Error)
Io error
Zip(ZipError)
Zip error
Xml(Error)
Xml error
XmlAttr(AttrError)
Xml attribute error
Parse(ParseError)
Error while parsing string
ParseInt(ParseIntError)
Error while parsing integer
ParseFloat(ParseFloatError)
Error while parsing float
ParseBool(ParseBoolError)
Error while parsing bool
InvalidMime(Vec<u8>)
Invalid MIME
FileNotFound(&'static str)
File not found
Eof(&'static str)
Unexpected end of file
Mismatch
Unexpected error
Password
Workbook is password protected
WorksheetNotFound(String)
Worksheet not found
Trait Implementations§
Source§impl Error for OdsError
impl Error for OdsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Infallible> for OdsError
impl From<Infallible> for OdsError
Source§fn from(e: ParseError) -> OdsError
fn from(e: ParseError) -> OdsError
Converts to this type from the input type.
Source§impl From<ParseFloatError> for OdsError
impl From<ParseFloatError> for OdsError
Source§fn from(e: ParseFloatError) -> OdsError
fn from(e: ParseFloatError) -> OdsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OdsError
impl !RefUnwindSafe for OdsError
impl Send for OdsError
impl Sync for OdsError
impl Unpin for OdsError
impl !UnwindSafe for OdsError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more