pub enum OdsError {
Io(Error),
Zip(ZipError),
Xml(Error),
Parse(ParseError),
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
InvalidMime(Vec<u8>),
FileNotFound(&'static str),
Eof(&'static str),
Mismatch {
expected: &'static str,
found: String,
},
}
Expand description
An enum for ods specific errors
Variants
Io(Error)
Io error
Zip(ZipError)
Zip error
Xml(Error)
Xml error
Parse(ParseError)
Error while parsing string
ParseInt(ParseIntError)
Error while parsing integer
ParseFloat(ParseFloatError)
Error while parsing float
InvalidMime(Vec<u8>)
Invalid MIME
FileNotFound(&'static str)
File not found
Eof(&'static str)
Unexpected end of file
Mismatch
Unexpexted error
Trait Implementations
sourceimpl Fail for OdsError
impl Fail for OdsError
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 moresourceimpl From<Infallible> for OdsError
impl From<Infallible> for OdsError
sourcefn from(e: ParseError) -> OdsError
fn from(e: ParseError) -> OdsError
Converts to this type from the input type.
sourceimpl From<ParseFloatError> for OdsError
impl From<ParseFloatError> for OdsError
sourcefn from(e: ParseFloatError) -> OdsError
fn from(e: ParseFloatError) -> OdsError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for OdsError
impl Send for OdsError
impl Sync for OdsError
impl Unpin for OdsError
impl !UnwindSafe for OdsError
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