#[non_exhaustive]pub enum Error {
Syntax,
Limit,
Unsupported,
Depth,
Attributes,
}Expand description
Syntax error, resource limit, or an intentionally unsupported XML construct.
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.
Syntax
not well-formed (or, for the tree, a name it cannot keep)
Limit
a limit of the tree: bytes, elements, nesting, attributes, the names it keeps
Unsupported
a construct the reader does not take: a DOCTYPE or other declaration, an encoding other than UTF-8 and UTF-16, XML other than 1.0; for the tree also comments, processing instructions, CDATA and mixed content
Depth
(Reader) more open elements than its depth
Attributes
(Reader) more attributes on one element than allowed, or more than 64 namespace bindings in scope
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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