Enum ErrorValue

Source
#[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.

Fields

§row: u32

Row ID.

§subrow: u16

Sub-row ID.

§sheet: Option<String>

Row’s parent sheet, if known.

§

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ErrorValue

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CustomError for T
where T: Display + Debug + Send + Sync + 'static,

Source§

fn as_any(&self) -> &(dyn Any + Send + Sync + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + Send + Sync + 'static)

Source§

fn as_box_any(self: Box<T>) -> Box<dyn Any + Send + Sync>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S> SheetMetadata for S
where S: ToString,

Source§

type Row = Row

Available on crate feature excel only.
Type of a successfully populated sheet row.
Source§

type Error = Infallible

Available on crate feature excel only.
Type of a failed population attempt.
Source§

fn name(&self) -> String

Available on crate feature excel only.
Name of the sheet.
Source§

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.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.