Debian Codegraph @

src/reader/events.rs

raw symbols SCIP
1 //! Contains `XmlEvent` datatype, instances of which are emitted by the parser.
2
3 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/;
4 use craterust-analyzer cargo xml-rs 0.8.19 crate/::attributerust-analyzer cargo xml-rs 0.8.19 attribute/::OwnedAttributerust-analyzer cargo xml-rs 0.8.19 attribute/OwnedAttribute#;
5 use craterust-analyzer cargo xml-rs 0.8.19 crate/::commonrust-analyzer cargo xml-rs 0.8.19 common/::XmlVersionrust-analyzer cargo xml-rs 0.8.19 common/XmlVersion#;
6 use craterust-analyzer cargo xml-rs 0.8.19 crate/::namerust-analyzer cargo xml-rs 0.8.19 name/::OwnedNamerust-analyzer cargo xml-rs 0.8.19 name/OwnedName#;
7 use craterust-analyzer cargo xml-rs 0.8.19 crate/::namespacerust-analyzer cargo xml-rs 0.8.19 namespace/::Namespacerust-analyzer cargo xml-rs 0.8.19 namespace/Namespace#;
8
9 /// An element of an XML input stream.
10 ///
11 /// Items of this enum are emitted by `reader::EventReader`. They correspond to different
12 /// elements of an XML document.
13 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)]
14 pub enum XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent# {
15 /// Corresponds to XML document declaration.
16 ///
17 /// This event is always emitted before any other event. It is emitted
18 /// even if the actual declaration is not present in the document.
19 StartDocumentrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument# {
20 /// XML version.
21 ///
22 /// If XML declaration is not present, defaults to `Version10`.
23 versionrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument#version.: XmlVersionrust-analyzer cargo xml-rs 0.8.19 common/XmlVersion#,
24
25 /// XML document encoding.
26 ///
27 /// If XML declaration is not present or does not contain `encoding` attribute,
28 /// defaults to `"UTF-8"`. This field is currently used for no other purpose than
29 /// informational.
30 encodingrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument#encoding.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
31
32 /// XML standalone declaration.
33 ///
34 /// If XML document is not present or does not contain `standalone` attribute,
35 /// defaults to `None`. This field is currently used for no other purpose than
36 /// informational.
37 standalonerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument#standalone.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>,
38 },
39
40 /// Denotes to the end of the document stream.
41 ///
42 /// This event is always emitted after any other event (except `Error`). After it
43 /// is emitted for the first time, it will always be emitted on next event pull attempts.
44 EndDocumentrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#EndDocument#,
45
46 /// Denotes an XML processing instruction.
47 ///
48 /// This event contains a processing instruction target (`name`) and opaque `data`. It
49 /// is up to the application to process them.
50 ProcessingInstructionrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#ProcessingInstruction# {
51 /// Processing instruction target.
52 namerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#ProcessingInstruction#name.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
53
54 /// Processing instruction content.
55 datarust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#ProcessingInstruction#data.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>,
56 },
57
58 /// Denotes a beginning of an XML element.
59 ///
60 /// This event is emitted after parsing opening tags or after parsing bodiless tags. In the
61 /// latter case `EndElement` event immediately follows.
62 StartElementrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement# {
63 /// Qualified name of the element.
64 namerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement#name.: OwnedNamerust-analyzer cargo xml-rs 0.8.19 name/OwnedName#,
65
66 /// A list of attributes associated with the element.
67 ///
68 /// Currently attributes are not checked for duplicates (TODO)
69 attributesrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement#attributes.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<OwnedAttributerust-analyzer cargo xml-rs 0.8.19 attribute/OwnedAttribute#>,
70
71 /// Contents of the namespace mapping at this point of the document.
72 namespacerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement#namespace.: Namespacerust-analyzer cargo xml-rs 0.8.19 namespace/Namespace#,
73 },
74
75 /// Denotes an end of an XML element.
76 ///
77 /// This event is emitted after parsing closing tags or after parsing bodiless tags. In the
78 /// latter case it is emitted immediately after corresponding `StartElement` event.
79 EndElementrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#EndElement# {
80 /// Qualified name of the element.
81 namerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#EndElement#name.: OwnedNamerust-analyzer cargo xml-rs 0.8.19 name/OwnedName#,
82 },
83
84 /// Denotes CDATA content.
85 ///
86 /// This event contains unparsed data. No unescaping will be performed.
87 ///
88 /// It is possible to configure a parser to emit `Characters` event instead of `CData`. See
89 /// `pull::ParserConfiguration` structure for more information.
90 CDatarust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#CData#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
91
92 /// Denotes a comment.
93 ///
94 /// It is possible to configure a parser to ignore comments, so this event will never be emitted.
95 /// See `pull::ParserConfiguration` structure for more information.
96 Commentrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#Comment#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
97
98 /// Denotes character data outside of tags.
99 ///
100 /// Contents of this event will always be unescaped, so no entities like `&lt;` or `&amp;` or `&#123;`
101 /// will appear in it.
102 ///
103 /// It is possible to configure a parser to trim leading and trailing whitespace for this event.
104 /// See `pull::ParserConfiguration` structure for more information.
105 Charactersrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#Characters#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
106
107 /// Denotes a chunk of whitespace outside of tags.
108 ///
109 /// It is possible to configure a parser to emit `Characters` event instead of `Whitespace`.
110 /// See `pull::ParserConfiguration` structure for more information. When combined with whitespace
111 /// trimming, it will eliminate standalone whitespace from the event stream completely.
112 Whitespacerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#Whitespace#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#),
113 }
114
115 impl fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent# {
116 #[cold]
117 fn fmtrust-analyzer cargo xml-rs 0.8.19 reader/events/impl#[XmlEvent][Debug]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# {
118 match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self {
119 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::StartDocumentrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument# { ref versionrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument#version., ref encodingrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument#encoding., standalonerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument#standalone. } =>
120 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "StartDocument({}, {}, {:?})", version, *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().encoding, standalone),
121 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::EndDocumentrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#EndDocument# =>
122 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "EndDocument"),
123 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::ProcessingInstructionrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#ProcessingInstruction# { ref namerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#ProcessingInstruction#name., ref datarust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#ProcessingInstruction#data. } =>
124 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "ProcessingInstruction({}{})", *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().name, match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().data {
125 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref data) => formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!(", {data}"),
126 Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]new().()
127 }),
128 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::StartElementrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement# { ref namerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement#name., ref attributesrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement#attributes., namespacerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement#namespace.: Namespacerust-analyzer cargo xml-rs 0.8.19 namespace/Namespace#(ref namespace) } =>
129 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "StartElement({}, {:?}{})", name, namespace, if attributes.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() {
130 Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]new().()
131 } else {
132 let attributes: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#> = attributes.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(
133 |a| formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("{} -> {}", a.namerust-analyzer cargo xml-rs 0.8.19 attribute/OwnedAttribute#name., a.valuerust-analyzer cargo xml-rs 0.8.19 attribute/OwnedAttribute#value.)
134 ).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().();
135 formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!(", [{}]", attributes.joinrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]join().(", "))
136 }),
137 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::EndElementrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#EndElement# { ref namerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#EndElement#name. } =>
138 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "EndElement({name})"),
139 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::Commentrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#Comment#(ref data) =>
140 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "Comment({data})"),
141 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::CDatarust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#CData#(ref data) =>
142 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "CData({data})"),
143 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::Charactersrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#Characters#(ref data) =>
144 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "Characters({data})"),
145 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::Whitespacerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#Whitespace#(ref data) =>
146 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "Whitespace({data})")
147 }
148 }
149 }
150
151 impl XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent# {
152 /// Obtains a writer event from this reader event.
153 ///
154 /// This method is useful for streaming processing of XML documents where the output
155 /// is also an XML document. With this method it is possible to process some events
156 /// while passing other events through to the writer unchanged:
157 ///
158 /// ```rust
159 /// use std::str;
160 ///
161 /// use xml::{EventReader, EventWriter};
162 /// use xml::reader::XmlEvent as ReaderEvent;
163 /// use xml::writer::XmlEvent as WriterEvent;
164 ///
165 /// let mut input: &[u8] = b"<hello>world</hello>";
166 /// let mut output: Vec<u8> = Vec::new();
167 ///
168 /// {
169 /// let mut reader = EventReader::new(&mut input);
170 /// let mut writer = EventWriter::new(&mut output);
171 ///
172 /// for e in reader {
173 /// match e.unwrap() {
174 /// ReaderEvent::Characters(s) =>
175 /// writer.write(WriterEvent::characters(&s.to_uppercase())).unwrap(),
176 /// e => if let Some(e) = e.as_writer_event() {
177 /// writer.write(e).unwrap()
178 /// }
179 /// }
180 /// }
181 /// }
182 ///
183 /// assert_eq!(
184 /// str::from_utf8(&output).unwrap(),
185 /// r#"<?xml version="1.0" encoding="UTF-8"?><hello>WORLD</hello>"#
186 /// );
187 /// ```
188 ///
189 /// Note that this API may change or get additions in future to improve its ergonomics.
190 #[must_use]
191 pub fn as_writer_eventrust-analyzer cargo xml-rs 0.8.19 reader/events/impl#[XmlEvent]as_writer_event().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<craterust-analyzer cargo xml-rs 0.8.19 crate/::writerrust-analyzer cargo xml-rs 0.8.19 writer/::eventsrust-analyzer cargo xml-rs 0.8.19 writer/events/::XmlEventrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#<'_>> {
192 match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self {
193 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::StartDocumentrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument# { versionrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument#version., ref encodingrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument#encoding., standalonerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartDocument#standalone. } =>
194 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(craterust-analyzer cargo xml-rs 0.8.19 crate/::writerrust-analyzer cargo xml-rs 0.8.19 writer/::eventsrust-analyzer cargo xml-rs 0.8.19 writer/events/::XmlEventrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#::StartDocumentrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#StartDocument# {
195 versionrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#StartDocument#version.,
196 encodingrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#StartDocument#encoding.: Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(encoding),
197 standalonerust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#StartDocument#standalone.
198 }),
199 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::ProcessingInstructionrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#ProcessingInstruction# { ref namerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#ProcessingInstruction#name., ref datarust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#ProcessingInstruction#data. } =>
200 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(craterust-analyzer cargo xml-rs 0.8.19 crate/::writerrust-analyzer cargo xml-rs 0.8.19 writer/::eventsrust-analyzer cargo xml-rs 0.8.19 writer/events/::XmlEventrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#::ProcessingInstructionrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#ProcessingInstruction# {
201 namerust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#ProcessingInstruction#name.,
202 datarust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#ProcessingInstruction#data.: data.as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map().(|s| &*rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][Deref]deref().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().s)
203 }),
204 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::StartElementrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement# { ref namerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement#name., ref attributesrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement#attributes., ref namespacerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#StartElement#namespace. } =>
205 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(craterust-analyzer cargo xml-rs 0.8.19 crate/::writerrust-analyzer cargo xml-rs 0.8.19 writer/::eventsrust-analyzer cargo xml-rs 0.8.19 writer/events/::XmlEventrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#::StartElementrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#StartElement# {
206 namerust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#StartElement#name.: name.borrowrust-analyzer cargo xml-rs 0.8.19 name/impl#[OwnedName]borrow().(),
207 attributesrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#StartElement#attributes.: attributes.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|a| a.borrowrust-analyzer cargo xml-rs 0.8.19 attribute/impl#[OwnedAttribute]borrow().()).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().(),
208 namespacerust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#StartElement#namespace.: namespace.borrowrust-analyzer cargo xml-rs 0.8.19 namespace/impl#[Namespace]borrow().(),
209 }),
210 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::EndElementrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#EndElement# { ref namerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#EndElement#name. } =>
211 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(craterust-analyzer cargo xml-rs 0.8.19 crate/::writerrust-analyzer cargo xml-rs 0.8.19 writer/::eventsrust-analyzer cargo xml-rs 0.8.19 writer/events/::XmlEventrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#::EndElementrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#EndElement# { namerust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#EndElement#name.: Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(name.borrowrust-analyzer cargo xml-rs 0.8.19 name/impl#[OwnedName]borrow().()) }),
212 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::Commentrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#Comment#(ref data) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(craterust-analyzer cargo xml-rs 0.8.19 crate/::writerrust-analyzer cargo xml-rs 0.8.19 writer/::eventsrust-analyzer cargo xml-rs 0.8.19 writer/events/::XmlEventrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#::Commentrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#Comment#(data)),
213 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::CDatarust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#CData#(ref data) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(craterust-analyzer cargo xml-rs 0.8.19 crate/::writerrust-analyzer cargo xml-rs 0.8.19 writer/::eventsrust-analyzer cargo xml-rs 0.8.19 writer/events/::XmlEventrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#::CDatarust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#CData#(data)),
214 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::Charactersrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#Characters#(ref data) |
215 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::Whitespacerust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#Whitespace#(ref data) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(craterust-analyzer cargo xml-rs 0.8.19 crate/::writerrust-analyzer cargo xml-rs 0.8.19 writer/::eventsrust-analyzer cargo xml-rs 0.8.19 writer/events/::XmlEventrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#::Charactersrust-analyzer cargo xml-rs 0.8.19 writer/events/XmlEvent#Characters#(data)),
216 XmlEventrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#::EndDocumentrust-analyzer cargo xml-rs 0.8.19 reader/events/XmlEvent#EndDocument# => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#,
217 }
218 }
219 }