#[non_exhaustive]pub enum PdbmlError {
Xml(Error),
Io(Error),
MissingDatablock,
InvalidNesting,
InvalidUtf8,
InvalidEntity,
}Expand description
Malformed or unsupported PDBML framing.
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.
Xml(Error)
XML tokenization or entity decoding failed.
Io(Error)
XML output could not be written.
MissingDatablock
The document has no PDBML datablock.
InvalidNesting
PDBML rows/categories are nested inconsistently.
InvalidUtf8
XML output was not UTF-8, which cannot represent PDBML.
InvalidEntity
An XML entity reference was not predefined or numeric.
Trait Implementations§
Source§impl Debug for PdbmlError
impl Debug for PdbmlError
Source§impl Display for PdbmlError
impl Display for PdbmlError
Source§impl Error for PdbmlError
impl Error for PdbmlError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for PdbmlError
impl From<Error> for PdbmlError
Auto Trait Implementations§
impl !RefUnwindSafe for PdbmlError
impl !UnwindSafe for PdbmlError
impl Freeze for PdbmlError
impl Send for PdbmlError
impl Sync for PdbmlError
impl Unpin for PdbmlError
impl UnsafeUnpin for PdbmlError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more