pub enum InvalidDocumentError {
StartEndTagMismatch {
start_kind: TagKind,
end_kind: TagKind,
},
StartTagMissing {
kind: TagKind,
},
ExpectedStart {
expected_start: TagKind,
actual: ActualStart,
},
}
Variants§
StartEndTagMismatch
Mismatching start/end kinds
StartIndent
...
EndGroup
StartTagMissing
End tag without a corresponding start tag.
Text
EndGroup
ExpectedStart
Expected a specific start tag but instead is:
- at the end of the document
- at another start tag
- at an end tag
Trait Implementations§
source§impl Clone for InvalidDocumentError
impl Clone for InvalidDocumentError
source§fn clone(&self) -> InvalidDocumentError
fn clone(&self) -> InvalidDocumentError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvalidDocumentError
impl Debug for InvalidDocumentError
source§impl Display for InvalidDocumentError
impl Display for InvalidDocumentError
source§impl PartialEq for InvalidDocumentError
impl PartialEq for InvalidDocumentError
source§fn eq(&self, other: &InvalidDocumentError) -> bool
fn eq(&self, other: &InvalidDocumentError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InvalidDocumentError
impl Eq for InvalidDocumentError
impl StructuralPartialEq for InvalidDocumentError
Auto Trait Implementations§
impl Freeze for InvalidDocumentError
impl RefUnwindSafe for InvalidDocumentError
impl Send for InvalidDocumentError
impl Sync for InvalidDocumentError
impl Unpin for InvalidDocumentError
impl UnwindSafe for InvalidDocumentError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.