Enum simple_parse::SpError[][src]

pub enum SpError {
    UnknownEnumVariant,
    NotEnoughSpace,
    CountFieldOverflow,
    InvalidBytes,
    BadAlignment,
}

Possible errors when reading/writing

Variants

UnknownEnumVariant

The data we attempted to decode did not contain a valid enum variant

NotEnoughSpace

There is not enough space to write T into the writer or to read T from the reader

CountFieldOverflow

An annotated count field’s type is too small to fit the number of elements

InvalidBytes

The data contained enough bytes but the contents were invalid

BadAlignment

A Rust reference cannot be created as the data is misaligned

Trait Implementations

impl Clone for SpError[src]

impl Copy for SpError[src]

impl Debug for SpError[src]

impl Display for SpError[src]

impl Error for SpError[src]

impl PartialEq<SpError> for SpError[src]

impl StructuralPartialEq for SpError[src]

Auto Trait Implementations

impl RefUnwindSafe for SpError

impl Send for SpError

impl Sync for SpError

impl Unpin for SpError

impl UnwindSafe for SpError

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.