[][src]Enum calamine::DeError

pub enum DeError {
    CellOutOfRange {
        try_pos: (u32, u32),
        min_pos: (u32, u32),
    },
    CellError {
        err: CellErrorType,
        pos: (u32, u32),
    },
    UnexpectedEndOfRow {
        pos: (u32, u32),
    },
    HeaderNotFound(String),
    Custom(String),
}

A cell deserialization specific error enum

Variants

CellOutOfRange

Cell out of range

Fields of CellOutOfRange

try_pos: (u32, u32)

Position tried

min_pos: (u32, u32)

Minimum position

CellError

The cell value is an error

Fields of CellError

err: CellErrorType

Cell value error

pos: (u32, u32)

Cell position

UnexpectedEndOfRow

Unexpected end of row

Fields of UnexpectedEndOfRow

pos: (u32, u32)

Cell position

HeaderNotFound(String)

Required header not found

Custom(String)

Serde specific error

Trait Implementations

impl From<DeError> for Error[src]

impl Display for DeError[src]

impl Debug for DeError[src]

impl Error for DeError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

impl Error for DeError[src]

fn invalid_type(unexp: Unexpected, exp: &dyn Expected) -> Self[src]

Raised when a Deserialize receives a type different from what it was expecting. Read more

fn invalid_value(unexp: Unexpected, exp: &dyn Expected) -> Self[src]

Raised when a Deserialize receives a value of the right type but that is wrong for some other reason. Read more

fn invalid_length(len: usize, exp: &dyn Expected) -> Self[src]

Raised when deserializing a sequence or map and the input data contains too many or too few elements. Read more

fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self[src]

Raised when a Deserialize enum type received a variant with an unrecognized name. Read more

fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self[src]

Raised when a Deserialize struct type received a field with an unrecognized name. Read more

fn missing_field(field: &'static str) -> Self[src]

Raised when a Deserialize struct type expected to receive a required field with a particular name but that field was not present in the input. Read more

fn duplicate_field(field: &'static str) -> Self[src]

Raised when a Deserialize struct type received more than one of the same field. Read more

Auto Trait Implementations

impl Unpin for DeError

impl Sync for DeError

impl Send for DeError

impl RefUnwindSafe for DeError

impl UnwindSafe for DeError

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

fn name(&self) -> Option<&str>[src]

Returns the "name" of the error. Read more

fn cause(&self) -> Option<&(dyn Fail + 'static)>[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

fn backtrace(&self) -> Option<&Backtrace>[src]

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 
[src]

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>[src]

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more