[][src]Enum vk_parse::Error

pub enum Error {
    UnexpectedElement {
        xpath: String,
        name: String,
    },
    UnexpectedAttribute {
        xpath: String,
        name: String,
    },
    UnexpectedAttributeValue {
        xpath: String,
        name: String,
        value: String,
    },
    MissingElement {
        xpath: String,
        name: String,
    },
    MissingAttribute {
        xpath: String,
        name: String,
    },
    SchemaViolation {
        xpath: String,
        desc: String,
    },
    Internal {
        desc: &'static str,
    },
}

Errors from which parser can recover. How much information will be missing in the resulting Registry depends on the type of error and situation in which it occurs. For example, unrecognized attribute will simply be skipped without affecting anything around it, while unrecognized element will have all of its contents skipped.

Variants

UnexpectedElement

Fields of UnexpectedElement

xpath: Stringname: String
UnexpectedAttribute

Fields of UnexpectedAttribute

xpath: Stringname: String
UnexpectedAttributeValue

Fields of UnexpectedAttributeValue

xpath: Stringname: Stringvalue: String
MissingElement

Fields of MissingElement

xpath: Stringname: String
MissingAttribute

Fields of MissingAttribute

xpath: Stringname: String
SchemaViolation

Fields of SchemaViolation

xpath: Stringdesc: String
Internal

Fields of Internal

desc: &'static str

Trait Implementations

impl Debug for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

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, 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.