Debian Codegraph @

src/reader/error.rs

raw symbols SCIP
1 use craterust-analyzer cargo xml-rs 0.8.19 crate/::Encodingrust-analyzer cargo xml-rs 0.8.19 util/Encoding#;
2 use craterust-analyzer cargo xml-rs 0.8.19 crate/::readerrust-analyzer cargo xml-rs 0.8.19 reader/::lexerrust-analyzer cargo xml-rs 0.8.19 reader/lexer/::Tokenrust-analyzer cargo xml-rs 0.8.19 reader/lexer/Token#;
3
4 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::borrowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/::Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#;
5 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/;
6 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# as _;
7 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/;
8 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/;
9 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/;
10
11 use craterust-analyzer cargo xml-rs 0.8.19 crate/::commonrust-analyzer cargo xml-rs 0.8.19 common/::{Positionrust-analyzer cargo xml-rs 0.8.19 common/Position#, TextPositionrust-analyzer cargo xml-rs 0.8.19 common/TextPosition#};
12 use craterust-analyzer cargo xml-rs 0.8.19 crate/::utilrust-analyzer cargo xml-rs 0.8.19 util/;
13
14 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
15 pub enum ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind# {
16 Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#(Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str>),
17 Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#),
18 Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#(strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/::Utf8Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/error/Utf8Error#),
19 UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof#,
20 }
21
22 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)]
23 #[non_exhaustive]
24 pub(craterust-analyzer cargo xml-rs 0.8.19 crate/) enum SyntaxErrorrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError# {
25 CannotRedefineXmlnsPrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#CannotRedefineXmlnsPrefix#,
26 CannotRedefineXmlPrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#CannotRedefineXmlPrefix#,
27 /// Recursive custom entity expanded to too many chars, it could be DoS
28 EntityTooBigrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#EntityTooBig#,
29 EmptyEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#EmptyEntity#,
30 NoRootElementrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#NoRootElement#,
31 ProcessingInstructionWithoutNamerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#ProcessingInstructionWithoutName#,
32 UnbalancedRootElementrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnbalancedRootElement#,
33 UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedEof#,
34 UnexpectedOpeningTagrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedOpeningTag#,
35 /// Missing `]]>`
36 UnclosedCdatarust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnclosedCdata#,
37 UnexpectedQualifiedNamerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedQualifiedName#(Tokenrust-analyzer cargo xml-rs 0.8.19 reader/lexer/Token#),
38 UnexpectedTokenOutsideRootrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenOutsideRoot#(Tokenrust-analyzer cargo xml-rs 0.8.19 reader/lexer/Token#),
39 UnexpectedTokenrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedToken#(Tokenrust-analyzer cargo xml-rs 0.8.19 reader/lexer/Token#),
40 UnexpectedTokenInEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenInEntity#(Tokenrust-analyzer cargo xml-rs 0.8.19 reader/lexer/Token#),
41 UnexpectedTokenInClosingTagrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenInClosingTag#(Tokenrust-analyzer cargo xml-rs 0.8.19 reader/lexer/Token#),
42 UnexpectedTokenInOpeningTagrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenInOpeningTag#(Tokenrust-analyzer cargo xml-rs 0.8.19 reader/lexer/Token#),
43 InvalidQualifiedNamerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidQualifiedName#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
44 UnboundAttributerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnboundAttribute#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
45 UnboundElementPrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnboundElementPrefix#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
46 UnexpectedClosingTagrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedClosingTag#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
47 UnexpectedNamerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedName#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
48 /// Found <?xml-like PI not at the beginning of a document,
49 /// which is an error, see section 2.6 of XML 1.1 spec
50 UnexpectedProcessingInstructionrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedProcessingInstruction#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>, Tokenrust-analyzer cargo xml-rs 0.8.19 reader/lexer/Token#),
51 CannotUndefinePrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#CannotUndefinePrefix#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
52 InvalidCharacterEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidCharacterEntity#(u32),
53 InvalidDefaultNamespacerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidDefaultNamespace#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
54 InvalidNamePrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidNamePrefix#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
55 InvalidNumericEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidNumericEntity#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
56 InvalidStandaloneDeclarationrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidStandaloneDeclaration#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
57 InvalidXmlProcessingInstructionrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidXmlProcessingInstruction#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
58 RedefinedAttributerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#RedefinedAttribute#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
59 UndefinedEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UndefinedEntity#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
60 UnexpectedEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedEntity#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
61 UnexpectedNameInsideXmlrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedNameInsideXml#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
62 UnsupportedEncodingrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnsupportedEncoding#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
63 /// In DTD
64 UnknownMarkupDeclarationrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnknownMarkupDeclaration#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
65 UnexpectedXmlVersionrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedXmlVersion#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>),
66 ConflictingEncodingrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#ConflictingEncoding#(Encodingrust-analyzer cargo xml-rs 0.8.19 util/Encoding#, Encodingrust-analyzer cargo xml-rs 0.8.19 util/Encoding#),
67 UnexpectedTokenBeforerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenBefore#(&'static str, char),
68 /// Document has more stuff than `ParserConfig` allows
69 ExceededConfiguredLimitrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#ExceededConfiguredLimit#,
70 }
71
72 impl fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for SyntaxErrorrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError# {
73 fn fmtrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
74 self.to_cowrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]to_cow().().fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/impl#[`Cow<'_, B>`][Display]fmt().(f)
75 }
76 }
77
78 impl SyntaxErrorrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError# {
79 #[inline(never)]
80 #[cold]
81 pub(craterust-analyzer cargo xml-rs 0.8.19 crate/) fn to_cowrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]to_cow().(&self) -> Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str> {
82 match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self {
83 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::CannotRedefineXmlnsPrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#CannotRedefineXmlnsPrefix# => "Cannot redefine XMLNS prefix".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
84 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::CannotRedefineXmlPrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#CannotRedefineXmlPrefix# => "Default XMLNS prefix cannot be rebound to another value".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
85 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::EmptyEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#EmptyEntity# => "Encountered empty entity".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
86 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::EntityTooBigrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#EntityTooBig# => "Entity too big".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
87 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::NoRootElementrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#NoRootElement# => "Unexpected end of stream: no root element found".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
88 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::ProcessingInstructionWithoutNamerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#ProcessingInstructionWithoutName# => "Encountered processing instruction without a name".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
89 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnbalancedRootElementrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnbalancedRootElement# => "Unexpected end of stream: still inside the root element".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
90 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnclosedCdatarust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnclosedCdata# => "Unclosed <![CDATA[".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
91 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedEof# => "Unexpected end of stream".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
92 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedOpeningTagrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedOpeningTag# => "'<' is not allowed in attributes".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
93 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::CannotUndefinePrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#CannotUndefinePrefix#(ref ln) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Cannot undefine prefix '{ln}'").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
94 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::ConflictingEncodingrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#ConflictingEncoding#(a, b) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Declared encoding {a}, but uses {b}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
95 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::InvalidCharacterEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidCharacterEntity#(num) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Invalid character U+{num:04X}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
96 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::InvalidDefaultNamespacerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidDefaultNamespace#(ref name) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!( "Namespace '{name}' cannot be default").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
97 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::InvalidNamePrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidNamePrefix#(ref prefix) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("'{prefix}' cannot be an element name prefix").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
98 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::InvalidNumericEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidNumericEntity#(ref v) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Invalid numeric entity: {v}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
99 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::InvalidQualifiedNamerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidQualifiedName#(ref e) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Qualified name is invalid: {e}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
100 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::InvalidStandaloneDeclarationrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidStandaloneDeclaration#(ref value) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Invalid standalone declaration value: {value}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
101 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::InvalidXmlProcessingInstructionrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#InvalidXmlProcessingInstruction#(ref name) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Invalid processing instruction: <?{name} - \"<?xml\"-like PI is only valid at the beginning of the document").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
102 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::RedefinedAttributerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#RedefinedAttribute#(ref name) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Attribute '{name}' is redefined").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
103 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnboundAttributerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnboundAttribute#(ref name) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Attribute {name} prefix is unbound").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
104 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnboundElementPrefixrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnboundElementPrefix#(ref name) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Element {name} prefix is unbound").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
105 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UndefinedEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UndefinedEntity#(ref v) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Undefined entity: {v}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
106 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedClosingTagrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedClosingTag#(ref expected_got) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected closing tag: {expected_got}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
107 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedEntity#(ref name) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected entity: {name}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
108 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedNamerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedName#(ref name) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected name: {name}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
109 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedNameInsideXmlrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedNameInsideXml#(ref name) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected name inside XML declaration: {name}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
110 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedProcessingInstructionrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedProcessingInstruction#(ref buf, token) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected token inside processing instruction: <?{buf}{token}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
111 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedQualifiedNamerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedQualifiedName#(e) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected token inside qualified name: {e}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
112 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedTokenrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedToken#(token) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected token: {token}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
113 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedTokenBeforerust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenBefore#(before, c) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected token '{before}' before '{c}'").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
114 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedTokenInClosingTagrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenInClosingTag#(token) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected token inside closing tag: {token}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
115 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedTokenInEntityrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenInEntity#(token) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected token inside entity: {token}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
116 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedTokenInOpeningTagrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenInOpeningTag#(token) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected token inside opening tag: {token}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
117 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedTokenOutsideRootrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedTokenOutsideRoot#(token) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unexpected characters outside the root element: {token}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
118 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnexpectedXmlVersionrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnexpectedXmlVersion#(ref version) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Invalid XML version: {version}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
119 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnknownMarkupDeclarationrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnknownMarkupDeclaration#(ref v) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unknown markup declaration: {v}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
120 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::UnsupportedEncodingrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#UnsupportedEncoding#(ref v) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("Unsupported encoding: {v}").intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
121 Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[SyntaxError]::ExceededConfiguredLimitrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#ExceededConfiguredLimit# => "This document is larger/more complex than allowed by the parser's configuration".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
122 }
123 }
124 }
125
126 /// An XML parsing error.
127 ///
128 /// Consists of a 2D position in a document and a textual message describing the error.
129 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
130 pub struct Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
131 pub(craterust-analyzer cargo xml-rs 0.8.19 crate/) posrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#pos.: TextPositionrust-analyzer cargo xml-rs 0.8.19 common/TextPosition#,
132 pub(craterust-analyzer cargo xml-rs 0.8.19 crate/) kindrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#kind.: ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#,
133 }
134
135 impl fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
136 fn fmtrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
137 use selfrust-analyzer cargo xml-rs 0.8.19 reader/error/::ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#::{Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#, Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#, UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof#, Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#};
138
139 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "{} ", self.posrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#pos.)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
140 match &self.kindrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#kind. {
141 Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#(io_error) => io_error.fmtrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error][Display]fmt().(f),
142 Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#(reason) => reason.fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/error/impl#[Utf8Error][Display]fmt().(f),
143 Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#(msg) => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().(msg),
144 UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("Unexpected EOF"),
145 }
146 }
147 }
148
149 impl Positionrust-analyzer cargo xml-rs 0.8.19 common/Position# for Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
150 #[inline]
151 fn positionrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error][Position]position().(&self) -> TextPositionrust-analyzer cargo xml-rs 0.8.19 common/TextPosition# { self.posrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#pos. }
152 }
153
154 impl Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
155 /// Returns a reference to a message which is contained inside this error.
156 #[cold]
157 #[doc(hidden)]
158 #[allow(deprecated)]
159 #[must_use] pub fn msgrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error]msg().(&self) -> &str {
160 use selfrust-analyzer cargo xml-rs 0.8.19 reader/error/::ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#::{Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#, Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#, UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof#, Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#};
161 match &self.kindrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#kind. {
162 Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#(io_error) => io_error.descriptionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#description().(),
163 Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#(reason) => reason.descriptionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#description().(),
164 Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#(msg) => msg.as_refrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/impl#[`Cow<'_, T>`][`AsRef<T>`]as_ref().(),
165 UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof# => "Unexpected EOF",
166 }
167 }
168
169 #[must_use]
170 #[inline]
171 pub fn kindrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error]kind().(&self) -> &ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind# {
172 &self.kindrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#kind.
173 }
174 }
175
176 impl errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
177 #[allow(deprecated)]
178 #[cold]
179 fn descriptionrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error][Error]description().(&self) -> &str { self.msgrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error]msg().() }
180 }
181
182 impl<'a, P, M> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<(&'a P, M)> for Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# where P: Positionrust-analyzer cargo xml-rs 0.8.19 common/Position#, M: Intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#<Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str>> {
183 #[cold]
184 fn fromrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error][`From<(&'a P, M)>`]from().(orig: (&'a P, M)) -> Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error][`From<(&'a P, M)>`] {
185 Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
186 posrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#pos.: orig.0.positionrust-analyzer cargo xml-rs 0.8.19 common/Position#position().(),
187 kindrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#kind.: ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#::Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#(orig.1.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#into().()),
188 }
189 }
190 }
191
192 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<utilrust-analyzer cargo xml-rs 0.8.19 util/::CharReadErrorrust-analyzer cargo xml-rs 0.8.19 util/CharReadError#> for Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
193 #[cold]
194 fn fromrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error][`From<util::CharReadError>`]from().(e: utilrust-analyzer cargo xml-rs 0.8.19 util/::CharReadErrorrust-analyzer cargo xml-rs 0.8.19 util/CharReadError#) -> Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error][`From<util::CharReadError>`] {
195 use craterust-analyzer cargo xml-rs 0.8.19 crate/::utilrust-analyzer cargo xml-rs 0.8.19 util/::CharReadErrorrust-analyzer cargo xml-rs 0.8.19 util/CharReadError#::{Iorust-analyzer cargo xml-rs 0.8.19 util/CharReadError#Io#, UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 util/CharReadError#UnexpectedEof#, Utf8rust-analyzer cargo xml-rs 0.8.19 util/CharReadError#Utf8#};
196 Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
197 posrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#pos.: TextPositionrust-analyzer cargo xml-rs 0.8.19 common/TextPosition#::newrust-analyzer cargo xml-rs 0.8.19 common/impl#[TextPosition]new().(),
198 kindrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#kind.: match e {
199 UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 util/CharReadError#UnexpectedEof# => ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#::UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof#,
200 Utf8rust-analyzer cargo xml-rs 0.8.19 util/CharReadError#Utf8#(reason) => ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#::Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#(reason),
201 Iorust-analyzer cargo xml-rs 0.8.19 util/CharReadError#Io#(io_error) => ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#::Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#(io_error),
202 },
203 }
204 }
205 }
206
207 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#> for Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
208 #[cold]
209 fn fromrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error][`From<io::Error>`]from().(e: iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#) -> Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[Error][`From<io::Error>`] {
210 Errorrust-analyzer cargo xml-rs 0.8.19 reader/error/Error# {
211 posrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#pos.: TextPositionrust-analyzer cargo xml-rs 0.8.19 common/TextPosition#::newrust-analyzer cargo xml-rs 0.8.19 common/impl#[TextPosition]new().(),
212 kindrust-analyzer cargo xml-rs 0.8.19 reader/error/Error#kind.: ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#::Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#(e),
213 }
214 }
215 }
216
217 impl Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone# for ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind# {
218 #[cold]
219 fn clonerust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[ErrorKind][Clone]clone().(&self) -> Selfrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[ErrorKind][Clone] {
220 use selfrust-analyzer cargo xml-rs 0.8.19 reader/error/::ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#::{Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#, Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#, UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof#, Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#};
221 match self {
222 UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof# => UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof#,
223 Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#(reason) => Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().reason),
224 Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#(io_error) => Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#(iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]new().(io_error.kindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]kind().(), io_error.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().())),
225 Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#(msg) => Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#(msg.clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/impl#[`Cow<'_, B>`][Clone]clone().()),
226 }
227 }
228 }
229 impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq# for ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind# {
230 #[allow(deprecated)]
231 fn eqrust-analyzer cargo xml-rs 0.8.19 reader/error/impl#[ErrorKind][`PartialEq<Self>`]eq().(&self, other: &ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#) -> bool {
232 use selfrust-analyzer cargo xml-rs 0.8.19 reader/error/::ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#::{Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#, Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#, UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof#, Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#};
233 match (self, other) {
234 (UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof#, UnexpectedEofrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#UnexpectedEof#) => true,
235 (Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#(left), Utf8rust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Utf8#(right)) => left rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().right,
236 (Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#(left), Iorust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Io#(right)) =>
237 left.kindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]kind().() rust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[ErrorKind][`PartialEq<Self>`]eq().==rust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[ErrorKind][`PartialEq<Self>`]eq(). rust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[ErrorKind][`PartialEq<Self>`]eq().right.kindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]kind().() &&
238 left.descriptionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#description().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().right.descriptionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#description().(),
239 (Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#(left), Syntaxrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind#Syntax#(right)) =>
240 left rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().right,
241
242 (_, _) => false,
243 }
244 }
245 }
246 impl Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq# for ErrorKindrust-analyzer cargo xml-rs 0.8.19 reader/error/ErrorKind# {}
247
248 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
249 fn err_sizerust-analyzer cargo xml-rs 0.8.19 reader/error/err_size().() {
250 assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<SyntaxErrorrust-analyzer cargo xml-rs 0.8.19 reader/error/SyntaxError#>() <= 24);
251 }