You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trac3r-rust/doc/xml/writer/events/enum.XmlEvent.html

91 lines
40 KiB

5 years ago
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `XmlEvent` enum in crate `xml`."><meta name="keywords" content="rust, rustlang, rust-lang, XmlEvent"><title>xml::writer::events::XmlEvent - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../../xml/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Enum XmlEvent</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.StartDocument">StartDocument</a><a href="#variant.ProcessingInstruction">ProcessingInstruction</a><a href="#variant.StartElement">StartElement</a><a href="#variant.EndElement">EndElement</a><a href="#variant.CData">CData</a><a href="#variant.Comment">Comment</a><a href="#variant.Characters">Characters</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.cdata">cdata</a><a href="#method.characters">characters</a><a href="#method.comment">comment</a><a href="#method.end_element">end_element</a><a href="#method.processing_instruction">processing_instruction</a><a href="#method.start_element">start_element</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-From%3C%26%27a%20str%3E">From&lt;&amp;&#39;a str&gt;</a><a href="#impl-From%3CEndElementBuilder%3C%27a%3E%3E">From&lt;EndElementBuilder&lt;&#39;a&gt;&gt;</a><a href="#impl-From%3CStartElementBuilder%3C%27a%3E%3E">From&lt;StartElementBuilder&lt;&#39;a&gt;&gt;</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class='location'><a href='../../index.html'>xml</a>::<wbr><a href='../index.html'>writer</a>::<wbr><a href='index.html'>events</a></p><script>window.sidebarCurrent = {name: 'XmlEvent', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Clic
StartDocument {
version: <a class="enum" href="../../../xml/common/enum.XmlVersion.html" title="enum xml::common::XmlVersion">XmlVersion</a>,
encoding: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,
standalone: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;,
},
ProcessingInstruction {
name: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
data: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,
},
StartElement {
name: <a class="struct" href="../../../xml/name/struct.Name.html" title="struct xml::name::Name">Name</a>&lt;'a&gt;,
attributes: <a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><a class="struct" href="../../../xml/attribute/struct.Attribute.html" title="struct xml::attribute::Attribute">Attribute</a>&lt;'a&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;,
namespace: <a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="struct" href="../../../xml/namespace/struct.Namespace.html" title="struct xml::namespace::Namespace">Namespace</a>&gt;,
},
EndElement {
name: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../xml/name/struct.Name.html" title="struct xml::name::Name">Name</a>&lt;'a&gt;&gt;,
},
CData(&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>),
Comment(&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>),
Characters(&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>),
}</pre></div><div class='docblock'><p>A part of an XML output stream.</p>
<p>Objects of this enum are consumed by <code>EventWriter</code>. They correspond to different parts of
an XML document.</p>
</div><h2 id='variants' class='variants small-section-header'>
Variants<a href='#variants' class='anchor'></a></h2>
<div id="variant.StartDocument" class="variant small-section-header"><a href="#variant.StartDocument" class="anchor field"></a><code id='StartDocument.v'>StartDocument</code></div><div class='docblock'><p>Corresponds to XML document declaration.</p>
<p>This event should always be written before any other event. If it is not written
at all, a default XML declaration will be outputted if the corresponding option
is set in the configuration. Otherwise an error will be returned.</p>
</div><div class='autohide sub-variant' id='variant.StartDocument.fields'><h3>Fields of <b>StartDocument</b></h3><div><span id="variant.StartDocument.field.version" class="variant small-section-header"><a href="#variant.StartDocument.field.version" class="anchor field"></a><code id='StartDocument.v.version.v'>version:&nbsp;<a class="enum" href="../../../xml/common/enum.XmlVersion.html" title="enum xml::common::XmlVersion">XmlVersion</a></code></span><div class='docblock'><p>XML version.</p>
<p>Defaults to <code>XmlVersion::Version10</code>.</p>
</div><span id="variant.StartDocument.field.encoding" class="variant small-section-header"><a href="#variant.StartDocument.field.encoding" class="anchor field"></a><code id='StartDocument.v.encoding.v'>encoding:&nbsp;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</code></span><div class='docblock'><p>XML document encoding.</p>
<p>Defaults to <code>Some(&quot;UTF-8&quot;)</code>.</p>
</div><span id="variant.StartDocument.field.standalone" class="variant small-section-header"><a href="#variant.StartDocument.field.standalone" class="anchor field"></a><code id='StartDocument.v.standalone.v'>standalone:&nbsp;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;</code></span><div class='docblock'><p>XML standalone declaration.</p>
<p>Defaults to <code>None</code>.</p>
</div></div></div><div id="variant.ProcessingInstruction" class="variant small-section-header"><a href="#variant.ProcessingInstruction" class="anchor field"></a><code id='ProcessingInstruction.v'>ProcessingInstruction</code></div><div class='docblock'><p>Denotes an XML processing instruction.</p>
</div><div class='autohide sub-variant' id='variant.ProcessingInstruction.fields'><h3>Fields of <b>ProcessingInstruction</b></h3><div><span id="variant.ProcessingInstruction.field.name" class="variant small-section-header"><a href="#variant.ProcessingInstruction.field.name" class="anchor field"></a><code id='ProcessingInstruction.v.name.v'>name:&nbsp;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span><div class='docblock'><p>Processing instruction target.</p>
</div><span id="variant.ProcessingInstruction.field.data" class="variant small-section-header"><a href="#variant.ProcessingInstruction.field.data" class="anchor field"></a><code id='ProcessingInstruction.v.data.v'>data:&nbsp;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</code></span><div class='docblock'><p>Processing instruction content.</p>
</div></div></div><div id="variant.StartElement" class="variant small-section-header"><a href="#variant.StartElement" class="anchor field"></a><code id='StartElement.v'>StartElement</code></div><div class='docblock'><p>Denotes a beginning of an XML element.</p>
</div><div class='autohide sub-variant' id='variant.StartElement.fields'><h3>Fields of <b>StartElement</b></h3><div><span id="variant.StartElement.field.name" class="variant small-section-header"><a href="#variant.StartElement.field.name" class="anchor field"></a><code id='StartElement.v.name.v'>name:&nbsp;<a class="struct" href="../../../xml/name/struct.Name.html" title="struct xml::name::Name">Name</a>&lt;'a&gt;</code></span><div class='docblock'><p>Qualified name of the element.</p>
</div><span id="variant.StartElement.field.attributes" class="variant small-section-header"><a href="#variant.StartElement.field.attributes" class="anchor field"></a><code id='StartElement.v.attributes.v'>attributes:&nbsp;<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><a class="struct" href="../../../xml/attribute/struct.Attribute.html" title="struct xml::attribute::Attribute">Attribute</a>&lt;'a&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;</code></span><div class='docblock'><p>A list of attributes associated with the element.</p>
<p>Currently attributes are not checked for duplicates (TODO). Attribute values
will be escaped, and all characters invalid for attribute values like <code>&quot;</code> or <code>&lt;</code>
will be changed into character entities.</p>
</div><span id="variant.StartElement.field.namespace" class="variant small-section-header"><a href="#variant.StartElement.field.namespace" class="anchor field"></a><code id='StartElement.v.namespace.v'>namespace:&nbsp;<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="struct" href="../../../xml/namespace/struct.Namespace.html" title="struct xml::namespace::Namespace">Namespace</a>&gt;</code></span><div class='docblock'><p>Contents of the namespace mapping at this point of the document.</p>
<p>This mapping will be inspected for &quot;new&quot; entries, and if at this point of the document
a particular pair of prefix and namespace URI is already defined, no namespace
attributes will be emitted.</p>
</div></div></div><div id="variant.EndElement" class="variant small-section-header"><a href="#variant.EndElement" class="anchor field"></a><code id='EndElement.v'>EndElement</code></div><div class='docblock'><p>Denotes an end of an XML element.</p>
</div><div class='autohide sub-variant' id='variant.EndElement.fields'><h3>Fields of <b>EndElement</b></h3><div><span id="variant.EndElement.field.name" class="variant small-section-header"><a href="#variant.EndElement.field.name" class="anchor field"></a><code id='EndElement.v.name.v'>name:&nbsp;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../xml/name/struct.Name.html" title="struct xml::name::Name">Name</a>&lt;'a&gt;&gt;</code></span><div class='docblock'><p>Optional qualified name of the element.</p>
<p>If <code>None</code>, then it is assumed that the element name should be the last valid one.
If <code>Some</code> and element names tracking is enabled, then the writer will check it for
correctness.</p>
</div></div></div><div id="variant.CData" class="variant small-section-header"><a href="#variant.CData" class="anchor field"></a><code id='CData.v'>CData(&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code></div><div class='docblock'><p>Denotes CDATA content.</p>
<p>This event contains unparsed data, and no escaping will be performed when writing it
to the output stream.</p>
</div><div id="variant.Comment" class="variant small-section-header"><a href="#variant.Comment" class="anchor field"></a><code id='Comment.v'>Comment(&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code></div><div class='docblock'><p>Denotes a comment.</p>
<p>The string will be checked for invalid sequences and error will be returned by the
write operation</p>
</div><div id="variant.Characters" class="variant small-section-header"><a href="#variant.Characters" class="anchor field"></a><code id='Characters.v'>Characters(&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code></div><div class='docblock'><p>Denotes character data outside of tags.</p>
<p>Contents of this event will be escaped if <code>perform_escaping</code> option is enabled,
that is, every character invalid for PCDATA will appear as a character entity.</p>
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl' class='anchor'></a><a class='srclink' href='../../../src/xml/writer/events.rs.html#96-142' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.processing_instruction' class="method"><code id='processing_instruction.v'>pub fn <a href='#method.processing_instruction' class='fnname'>processing_instruction</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;name: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;data: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;<br>) -&gt; <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/xml/writer/events.rs.html#99-101' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns an writer event for a processing instruction.</p>
</div><h4 id='method.start_element' class="method"><code id='start_element.v'>pub fn <a href='#method.start_element' class='fnname'>start_element</a>&lt;S&gt;(name: S) -&gt; <a class="struct" href="../../../xml/writer/events/struct.StartElementBuilder.html" title="struct xml::writer::events::StartElementBuilder">StartElementBuilder</a>&lt;'a&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../xml/name/struct.Name.html" title="struct xml::name::Name">Name</a>&lt;'a&gt;&gt;,&nbsp;</span></code><a class='srclink' href='../../../src/xml/writer/events.rs.html#108-114' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a builder for a starting element.</p>
<p>This builder can then be used to tweak attributes and namespace starting at
this element.</p>
</div><h4 id='method.end_element' class="method"><code id='end_element.v'>pub fn <a href='#method.end_element' class='fnname'>end_element</a>() -&gt; <a class="struct" href="../../../xml/writer/events/struct.EndElementBuilder.html" title="struct xml::writer::events::EndElementBuilder">EndElementBuilder</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/xml/writer/events.rs.html#122-124' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a builder for an closing element.</p>
<p>This method, unline <code>start_element()</code>, does not accept a name because by default
the writer is able to determine it automatically. However, when this functionality
is disabled, it is possible to specify the name with <code>name()</code> method on the builder.</p>
</div><h4 id='method.cdata' class="method"><code id='cdata.v'>pub fn <a href='#method.cdata' class='fnname'>cdata</a>(data: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/xml/writer/events.rs.html#131' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a CDATA event.</p>
<p>Naturally, the provided string won't be escaped, except for closing CDATA token <code>]]&gt;</code>
(depending on the configuration).</p>
</div><h4 id='method.characters' class="method"><code id='characters.v'>pub fn <a href='#method.characters' class='fnname'>characters</a>(data: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/xml/writer/events.rs.html#137' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a regular characters (PCDATA) event.</p>
<p>All offending symbols, in particular, <code>&amp;</code> and <code>&lt;</code>, will be escaped by the writer.</p>
</div><h4 id='method.comment' class="method"><code id='comment.v'>pub fn <a href='#method.comment' class='fnname'>comment</a>(data: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/xml/writer/events.rs.html#141' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a comment event.</p>
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-From%3C%26%27a%20str%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl-From%3C%26%27a%20str%3E' class='anchor'></a><a class='srclink' href='../../../src/xml/writer/events.rs.html#144-147' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(s: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/xml/writer/events.rs.html#146' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CEndElementBuilder%3C%27a%3E%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../../../xml/writer/events/struct.EndElementBuilder.html" title="struct xml::writer::events::EndElementBuilder">EndElementBuilder</a>&lt;'a&gt;&gt; for <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl-From%3CEndElementBuilder%3C%27a%3E%3E' class='anchor'></a><a class='srclink' href='../../../src/xml/writer/events.rs.html#168-172' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(b: <a class="struct" href="../../../xml/writer/events/struct.EndElementBuilder.html" title="struct xml::writer::events::EndElementBuilder">EndElementBuilder</a>&lt;'a&gt;) -&gt; <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/xml/writer/events.rs.html#169-171' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CStartElementBuilder%3C%27a%3E%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../../../xml/writer/events/struct.StartElementBuilder.html" title="struct xml::writer::events::StartElementBuilder">StartElementBuilder</a>&lt;'a&gt;&gt; for <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl-From%3CStartElementBuilder%3C%27a%3E%3E' class='anchor'></a><a class='srclink' href='../../../src/xml/writer/events.rs.html#232-241' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method hidden"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(b: <a class="struct" href="../../../xml/writer/events/struct.StartElementBuilder.html" title="struct xml::writer::events::StartElementBuilder">StartElementBuilder</a>&lt;'a&gt;) -&gt; <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a class='srclink' href='../../../src/xml/writer/events.rs.html#234-240' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../../../src/xml/writer/events.rs.html#14' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../../../src/xml/writer/events.rs.html#14' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../../../xml/writer/events/enum.XmlEvent.html" title="enum xml::writer::events::XmlEvent">XmlEvent</a>&lt;'a&gt;</code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#544-549' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -&gt; U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#546-548' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553-555' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-3' class="method hidden"><code id='from.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -&gt; T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#554' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#572-578' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#575-577' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#560-567' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#564-566' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id='impl-Any' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../";window.currentCrate = "xml";</script><script src="../../../aliases.js"></script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html>