FatalParseError

Enum FatalParseError 

Source
#[non_exhaustive]
pub enum FatalParseError { IOError(Error), XMLError(Error), UnexpectedTag(String), InvalidTag((Tag, String)), MissingOpeningTag(String), MissingClosingTag(String), UnexpectedError(String), InvalidUtf8(Utf8Error), UnexpectedEvent(String), }
Expand description

Possible errors occuring during the parsing of an (i)mzML file, which prevent further parsing

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

IOError(Error)

I/O error when interacting with the file

§

XMLError(Error)

Issue with the validity of the XML causing parsing to cease

§

UnexpectedTag(String)

Expected a different tag, so unable to proceed

§

InvalidTag((Tag, String))

Tag is not imlpemented correctly (e.g. missing attributes)

§

MissingOpeningTag(String)

An expected opening tag is missing

§

MissingClosingTag(String)

An expected closing tag is missing

§

UnexpectedError(String)

an unexpected error has occured

§

InvalidUtf8(Utf8Error)

Invalid UTF-8 found when trying to convert u8 to UTF8

§

UnexpectedEvent(String)

An unexpected XML event has been encountered

Trait Implementations§

Source§

impl Debug for FatalParseError

Source§

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

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

impl From<Error> for FatalParseError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for FatalParseError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Utf8Error> for FatalParseError

Source§

fn from(error: Utf8Error) -> Self

Converts to this type from the input type.
Source§

impl Serialize for FatalParseError

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. 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> 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<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> ErasedDestructor for T
where T: 'static,