#[non_exhaustive]pub enum ErrorValue {
Path(String),
Sheet(String),
Row {
row: u32,
subrow: u16,
sheet: Option<String>,
},
File(Vec<u8>),
Other(String),
}Expand description
A value associated with an error that occured.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Path(String)
A path to a file.
Sheet(String)
Available on crate feature
excel only.An Excel sheet.
Row
Available on crate feature
exd only.An Excel row.
File(Vec<u8>)
Available on crate feature
sqpack only.A SqPack file.
Other(String)
A value not represented by other variants.
ErrorValues of the Other type should only be matched on with a wildcard
(_) pattern. Values represented by Other may be promoted to a new variant
in future versions.
Trait Implementations§
Source§impl Debug for ErrorValue
impl Debug for ErrorValue
Auto Trait Implementations§
impl Freeze for ErrorValue
impl RefUnwindSafe for ErrorValue
impl Send for ErrorValue
impl Sync for ErrorValue
impl Unpin for ErrorValue
impl UnwindSafe for ErrorValue
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
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<S> SheetMetadata for Swhere
S: ToString,
impl<S> SheetMetadata for Swhere
S: ToString,
Source§type Row = Row
type Row = Row
Available on crate feature
excel only.Type of a successfully populated sheet row.
Source§type Error = Infallible
type Error = Infallible
Available on crate feature
excel only.Type of a failed population attempt.
Source§fn populate_row(
&self,
row: Row,
) -> Result<<S as SheetMetadata>::Row, <S as SheetMetadata>::Error>
fn populate_row( &self, row: Row, ) -> Result<<S as SheetMetadata>::Row, <S as SheetMetadata>::Error>
Available on crate feature
excel only.Populate a sheet from the provided row reader.