pub enum SheetsDiffError {
OpenWorkbook {
side: WorkbookSide,
path: PathBuf,
source: XlsxError,
},
OpenReader {
side: WorkbookSide,
source: XlsxError,
},
ReadSheetValues {
side: WorkbookSide,
sheet: String,
source: XlsxError,
},
ReadSheetFormulas {
side: WorkbookSide,
sheet: String,
source: XlsxError,
},
}Expand description
Structured error type for all fallible Diff constructors.
Each variant carries enough context for a GUI application to display a precise error message identifying which side and which path or sheet caused the failure.
Variants§
OpenWorkbook
The workbook file could not be opened or parsed.
OpenReader
A workbook supplied as a reader could not be parsed.
ReadSheetValues
Reading cell values from a named worksheet failed.
ReadSheetFormulas
Reading cell formulas from a named worksheet failed.
Trait Implementations§
Source§impl Debug for SheetsDiffError
impl Debug for SheetsDiffError
Source§impl Display for SheetsDiffError
impl Display for SheetsDiffError
Source§impl Error for SheetsDiffError
impl Error for SheetsDiffError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SheetsDiffError
impl !UnwindSafe for SheetsDiffError
impl Freeze for SheetsDiffError
impl Send for SheetsDiffError
impl Sync for SheetsDiffError
impl Unpin for SheetsDiffError
impl UnsafeUnpin for SheetsDiffError
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