98 lines
60 KiB
HTML
98 lines
60 KiB
HTML
<!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="A list of all possible errors."><title>Error in roxmltree - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="roxmltree" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc enum"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../roxmltree/index.html">roxmltree</a><span class="version">0.20.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Error</a></h2><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.AttributesLimitReached" title="AttributesLimitReached">AttributesLimitReached</a></li><li><a href="#variant.DtdDetected" title="DtdDetected">DtdDetected</a></li><li><a href="#variant.DuplicatedAttribute" title="DuplicatedAttribute">DuplicatedAttribute</a></li><li><a href="#variant.DuplicatedNamespace" title="DuplicatedNamespace">DuplicatedNamespace</a></li><li><a href="#variant.EntityReferenceLoop" title="EntityReferenceLoop">EntityReferenceLoop</a></li><li><a href="#variant.InvalidAttributeValue" title="InvalidAttributeValue">InvalidAttributeValue</a></li><li><a href="#variant.InvalidChar" title="InvalidChar">InvalidChar</a></li><li><a href="#variant.InvalidChar2" title="InvalidChar2">InvalidChar2</a></li><li><a href="#variant.InvalidCharacterData" title="InvalidCharacterData">InvalidCharacterData</a></li><li><a href="#variant.InvalidComment" title="InvalidComment">InvalidComment</a></li><li><a href="#variant.InvalidElementNamePrefix" title="InvalidElementNamePrefix">InvalidElementNamePrefix</a></li><li><a href="#variant.InvalidExternalID" title="InvalidExternalID">InvalidExternalID</a></li><li><a href="#variant.InvalidName" title="InvalidName">InvalidName</a></li><li><a href="#variant.InvalidString" title="InvalidString">InvalidString</a></li><li><a href="#variant.InvalidXmlPrefixUri" title="InvalidXmlPrefixUri">InvalidXmlPrefixUri</a></li><li><a href="#variant.MalformedEntityReference" title="MalformedEntityReference">MalformedEntityReference</a></li><li><a href="#variant.NamespacesLimitReached" title="NamespacesLimitReached">NamespacesLimitReached</a></li><li><a href="#variant.NoRootNode" title="NoRootNode">NoRootNode</a></li><li><a href="#variant.NodesLimitReached" title="NodesLimitReached">NodesLimitReached</a></li><li><a href="#variant.NonXmlChar" title="NonXmlChar">NonXmlChar</a></li><li><a href="#variant.UnclosedRootNode" title="UnclosedRootNode">UnclosedRootNode</a></li><li><a href="#variant.UnexpectedCloseTag" title="UnexpectedCloseTag">UnexpectedCloseTag</a></li><li><a href="#variant.UnexpectedDeclaration" title="UnexpectedDeclaration">UnexpectedDeclaration</a></li><li><a href="#variant.UnexpectedEndOfStream" title="UnexpectedEndOfStream">UnexpectedEndOfStream</a></li><li><a href="#variant.UnexpectedEntityCloseTag" title="UnexpectedEntityCloseTag">UnexpectedEntityCloseTag</a></li><li><a href="#variant.UnexpectedXmlUri" title="UnexpectedXmlUri">UnexpectedXmlUri</a></li><li><a href="#variant.UnexpectedXmlnsUri" title="UnexpectedXmlnsUri">UnexpectedXmlnsUri</a></li><li><a href="#variant.UnknownEntityReference" title="UnknownEntityReference">UnknownEntityReference</a></li><li><a href="#variant.UnknownNamespace" title="UnknownNamespace">UnknownNamespace</a></li><li><a href="#variant.UnknownToken" title="UnknownToken">UnknownToken</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.pos" title="pos">pos</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Error" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-Error" title="Debug">Debug</a></li><li><a href="#impl-Display-for-Error" title="Display">Display</a></li><li><a href="#impl-Eq-for-Error" title="Eq">Eq</a></li><li><a href="#impl-Error-for-Error" title="Error">Error</a></li><li><a href="#impl-Hash-for-Error" title="Hash">Hash</a></li><li><a href="#impl-PartialEq-for-Error" title="PartialEq">PartialEq</a></li><li><a href="#impl-StructuralPartialEq-for-Error" title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Error" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Error" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Error" title="Send">Send</a></li><li><a href="#impl-Sync-for-Error" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Error" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Error" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-ToString-for-T" title="ToString">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate roxmltree</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">roxmltree</a></span><h1>Enum <span class="enum">Error</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/roxmltree/parse.rs.html#17-146">Source</a> </span></div><pre class="rust item-decl"><code>pub enum Error {
|
||
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 30 variants</span></summary> InvalidXmlPrefixUri(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
UnexpectedXmlUri(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
UnexpectedXmlnsUri(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
InvalidElementNamePrefix(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
DuplicatedNamespace(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
UnknownNamespace(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
UnexpectedCloseTag(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
UnexpectedEntityCloseTag(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
UnknownEntityReference(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
MalformedEntityReference(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
EntityReferenceLoop(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
InvalidAttributeValue(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
DuplicatedAttribute(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
NoRootNode,
|
||
UnclosedRootNode,
|
||
UnexpectedDeclaration(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
DtdDetected,
|
||
NodesLimitReached,
|
||
AttributesLimitReached,
|
||
NamespacesLimitReached,
|
||
InvalidName(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
NonXmlChar(<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.char.html">char</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
InvalidChar(<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
InvalidChar2(&'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
InvalidString(&'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
InvalidExternalID(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
InvalidComment(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
InvalidCharacterData(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
UnknownToken(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>),
|
||
UnexpectedEndOfStream,
|
||
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A list of all possible errors.</p>
|
||
</div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.InvalidXmlPrefixUri" class="variant"><a href="#variant.InvalidXmlPrefixUri" class="anchor">§</a><h3 class="code-header">InvalidXmlPrefixUri(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>The <code>xmlns:xml</code> attribute must have an <a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a> URI.</p>
|
||
</div><section id="variant.UnexpectedXmlUri" class="variant"><a href="#variant.UnexpectedXmlUri" class="anchor">§</a><h3 class="code-header">UnexpectedXmlUri(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>Only the <code>xmlns:xml</code> attribute can have the <a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a> URI.</p>
|
||
</div><section id="variant.UnexpectedXmlnsUri" class="variant"><a href="#variant.UnexpectedXmlnsUri" class="anchor">§</a><h3 class="code-header">UnexpectedXmlnsUri(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>The <a href="http://www.w3.org/2000/xmlns/">http://www.w3.org/2000/xmlns/</a> URI must not be declared.</p>
|
||
</div><section id="variant.InvalidElementNamePrefix" class="variant"><a href="#variant.InvalidElementNamePrefix" class="anchor">§</a><h3 class="code-header">InvalidElementNamePrefix(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p><code>xmlns</code> can’t be used as an element prefix.</p>
|
||
</div><section id="variant.DuplicatedNamespace" class="variant"><a href="#variant.DuplicatedNamespace" class="anchor">§</a><h3 class="code-header">DuplicatedNamespace(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>A namespace was already defined on this element.</p>
|
||
</div><section id="variant.UnknownNamespace" class="variant"><a href="#variant.UnknownNamespace" class="anchor">§</a><h3 class="code-header">UnknownNamespace(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>An unknown namespace.</p>
|
||
<p>Indicates that an element or an attribute has an unknown qualified name prefix.</p>
|
||
<p>The first value is a prefix.</p>
|
||
</div><section id="variant.UnexpectedCloseTag" class="variant"><a href="#variant.UnexpectedCloseTag" class="anchor">§</a><h3 class="code-header">UnexpectedCloseTag(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>Incorrect tree structure.</p>
|
||
<p>expected, actual, position</p>
|
||
</div><section id="variant.UnexpectedEntityCloseTag" class="variant"><a href="#variant.UnexpectedEntityCloseTag" class="anchor">§</a><h3 class="code-header">UnexpectedEntityCloseTag(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>Entity value starts with a close tag.</p>
|
||
<p>Example:</p>
|
||
<div class="example-wrap"><pre class="language-xml"><code><!DOCTYPE test [ <!ENTITY p '</p>'> ]>
|
||
<root>&p;</root></code></pre></div></div><section id="variant.UnknownEntityReference" class="variant"><a href="#variant.UnknownEntityReference" class="anchor">§</a><h3 class="code-header">UnknownEntityReference(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>A reference to an entity that was not defined in the DTD.</p>
|
||
</div><section id="variant.MalformedEntityReference" class="variant"><a href="#variant.MalformedEntityReference" class="anchor">§</a><h3 class="code-header">MalformedEntityReference(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>A malformed entity reference.</p>
|
||
<p>A <code>&</code> character inside an attribute value or text indicates an entity reference.
|
||
Otherwise, the document is not well-formed.</p>
|
||
</div><section id="variant.EntityReferenceLoop" class="variant"><a href="#variant.EntityReferenceLoop" class="anchor">§</a><h3 class="code-header">EntityReferenceLoop(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>A possible entity reference loop.</p>
|
||
<p>The current depth limit is 10. The max number of references per reference is 255.</p>
|
||
</div><section id="variant.InvalidAttributeValue" class="variant"><a href="#variant.InvalidAttributeValue" class="anchor">§</a><h3 class="code-header">InvalidAttributeValue(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>Attribute value cannot have a <code><</code> character.</p>
|
||
</div><section id="variant.DuplicatedAttribute" class="variant"><a href="#variant.DuplicatedAttribute" class="anchor">§</a><h3 class="code-header">DuplicatedAttribute(<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>An element has a duplicated attributes.</p>
|
||
<p>This also includes namespaces resolving.
|
||
So an element like this will lead to an error.</p>
|
||
<div class="example-wrap"><pre class="language-xml"><code><e xmlns:n1='http://www.w3.org' xmlns:n2='http://www.w3.org' n1:a='b1' n2:a='b2'/></code></pre></div></div><section id="variant.NoRootNode" class="variant"><a href="#variant.NoRootNode" class="anchor">§</a><h3 class="code-header">NoRootNode</h3></section><div class="docblock"><p>The XML document must have at least one element.</p>
|
||
</div><section id="variant.UnclosedRootNode" class="variant"><a href="#variant.UnclosedRootNode" class="anchor">§</a><h3 class="code-header">UnclosedRootNode</h3></section><div class="docblock"><p>The root node was opened but never closed.</p>
|
||
</div><section id="variant.UnexpectedDeclaration" class="variant"><a href="#variant.UnexpectedDeclaration" class="anchor">§</a><h3 class="code-header">UnexpectedDeclaration(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>An XML document can have only one XML declaration
|
||
and it must be at the start of the document.</p>
|
||
</div><section id="variant.DtdDetected" class="variant"><a href="#variant.DtdDetected" class="anchor">§</a><h3 class="code-header">DtdDetected</h3></section><div class="docblock"><p>An XML with DTD detected.</p>
|
||
<p>This error will be emitted only when <code>ParsingOptions::allow_dtd</code> is set to <code>false</code>.</p>
|
||
</div><section id="variant.NodesLimitReached" class="variant"><a href="#variant.NodesLimitReached" class="anchor">§</a><h3 class="code-header">NodesLimitReached</h3></section><div class="docblock"><p>Indicates that the <a href="struct.ParsingOptions.html#structfield.nodes_limit" title="field roxmltree::ParsingOptions::nodes_limit"><code>ParsingOptions::nodes_limit</code></a> was reached.</p>
|
||
</div><section id="variant.AttributesLimitReached" class="variant"><a href="#variant.AttributesLimitReached" class="anchor">§</a><h3 class="code-header">AttributesLimitReached</h3></section><div class="docblock"><p>Indicates that too many attributes were parsed.</p>
|
||
</div><section id="variant.NamespacesLimitReached" class="variant"><a href="#variant.NamespacesLimitReached" class="anchor">§</a><h3 class="code-header">NamespacesLimitReached</h3></section><div class="docblock"><p>Indicates that too many namespaces were parsed.</p>
|
||
</div><section id="variant.InvalidName" class="variant"><a href="#variant.InvalidName" class="anchor">§</a><h3 class="code-header">InvalidName(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>An invalid name.</p>
|
||
</div><section id="variant.NonXmlChar" class="variant"><a href="#variant.NonXmlChar" class="anchor">§</a><h3 class="code-header">NonXmlChar(<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.char.html">char</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>A non-XML character has occurred.</p>
|
||
<p>Valid characters are: <a href="https://www.w3.org/TR/xml/#char32">https://www.w3.org/TR/xml/#char32</a></p>
|
||
</div><section id="variant.InvalidChar" class="variant"><a href="#variant.InvalidChar" class="anchor">§</a><h3 class="code-header">InvalidChar(<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>An invalid/unexpected character.</p>
|
||
<p>expected, actual, position</p>
|
||
</div><section id="variant.InvalidChar2" class="variant"><a href="#variant.InvalidChar2" class="anchor">§</a><h3 class="code-header">InvalidChar2(&'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>An invalid/unexpected character.</p>
|
||
<p>expected, actual, position</p>
|
||
</div><section id="variant.InvalidString" class="variant"><a href="#variant.InvalidString" class="anchor">§</a><h3 class="code-header">InvalidString(&'static <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a>, <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>An unexpected string.</p>
|
||
<p>Contains what string was expected.</p>
|
||
</div><section id="variant.InvalidExternalID" class="variant"><a href="#variant.InvalidExternalID" class="anchor">§</a><h3 class="code-header">InvalidExternalID(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>An invalid ExternalID in the DTD.</p>
|
||
</div><section id="variant.InvalidComment" class="variant"><a href="#variant.InvalidComment" class="anchor">§</a><h3 class="code-header">InvalidComment(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>A comment cannot contain <code>--</code> or end with <code>-</code>.</p>
|
||
</div><section id="variant.InvalidCharacterData" class="variant"><a href="#variant.InvalidCharacterData" class="anchor">§</a><h3 class="code-header">InvalidCharacterData(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>A Character Data node contains an invalid data.</p>
|
||
<p>Currently, only <code>]]></code> is not allowed.</p>
|
||
</div><section id="variant.UnknownToken" class="variant"><a href="#variant.UnknownToken" class="anchor">§</a><h3 class="code-header">UnknownToken(<a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a>)</h3></section><div class="docblock"><p>An unknown token.</p>
|
||
</div><section id="variant.UnexpectedEndOfStream" class="variant"><a href="#variant.UnexpectedEndOfStream" class="anchor">§</a><h3 class="code-header">UnexpectedEndOfStream</h3></section><div class="docblock"><p>The steam ended earlier than we expected.</p>
|
||
<p>Should only appear on invalid input data.</p>
|
||
</div></div><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Error" class="impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#148-184">Source</a><a href="#impl-Error" class="anchor">§</a><h3 class="code-header">impl <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.pos" class="method"><a class="src rightside" href="../src/roxmltree/parse.rs.html#150-183">Source</a><h4 class="code-header">pub fn <a href="#method.pos" class="fn">pos</a>(&self) -> <a class="struct" href="struct.TextPos.html" title="struct roxmltree::TextPos">TextPos</a></h4></section></summary><div class="docblock"><p>Returns the error position.</p>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Error" class="impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#impl-Clone-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Error" class="impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#impl-Debug-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.84.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-Error" class="impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#186-305">Source</a><a href="#impl-Display-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#187-304">Source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Display.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.84.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Error-for-Error" class="impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#308-312">Source</a><a href="#impl-Error-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html" title="trait core::error::Error">Error</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.description" class="method trait-impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#309-311">Source</a><a href="#method.description" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html#method.description" class="fn">description</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.str.html">str</a></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.42.0: use the Display impl or to_string()</span></div></span><div class='docblock'> <a href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html#method.description">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.source" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.30.0">1.30.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/error.rs.html#81">Source</a></span><a href="#method.source" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html#method.source" class="fn">source</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&(dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + 'static)></h4></section></summary><div class='docblock'>Returns the lower-level source of this error, if any. <a href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html#method.source">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cause" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/error.rs.html#117">Source</a></span><a href="#method.cause" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html#method.cause" class="fn">cause</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html" title="trait core::error::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.33.0: replaced by Error::source, which can support downcasting</span></div></span></details><details class="toggle method-toggle" open><summary><section id="method.provide" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/error.rs.html#180">Source</a><a href="#method.provide" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html#method.provide" class="fn">provide</a><'a>(&'a self, request: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/error/struct.Request.html" title="struct core::error::Request">Request</a><'a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>error_generic_member_access</code>)</span></div></span><div class='docblock'>Provides type-based access to context intended for error reports. <a href="https://doc.rust-lang.org/1.84.0/core/error/trait.Error.html#method.provide">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Hash-for-Error" class="impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#impl-Hash-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html#tymethod.hash" class="fn">hash</a><__H: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut __H</a>)</h4></section></summary><div class='docblock'>Feeds this value into the given <a href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/hash/mod.rs.html#235-237">Source</a></span><a href="#method.hash_slice" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html#method.hash_slice" class="fn">hash_slice</a><H>(data: &[Self], state: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut H</a>)<div class="where">where
|
||
H: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.84.0/core/hash/trait.Hash.html#method.hash_slice">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-Error" class="impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#impl-PartialEq-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.84.0/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><section id="impl-Eq-for-Error" class="impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#impl-Eq-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section><section id="impl-StructuralPartialEq-for-Error" class="impl"><a class="src rightside" href="../src/roxmltree/parse.rs.html#16">Source</a><a href="#impl-StructuralPartialEq-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Error" class="impl"><a href="#impl-Freeze-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section><section id="impl-RefUnwindSafe-for-Error" class="impl"><a href="#impl-RefUnwindSafe-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section><section id="impl-Send-for-Error" class="impl"><a href="#impl-Send-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section><section id="impl-Sync-for-Error" class="impl"><a href="#impl-Sync-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section><section id="impl-Unpin-for-Error" class="impl"><a href="#impl-Unpin-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section><section id="impl-UnwindSafe-for-Error" class="impl"><a href="#impl-UnwindSafe-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.Error.html" title="enum roxmltree::Error">Error</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dst: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/1.84.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.84.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToString-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/string.rs.html#2677">Source</a><a href="#impl-ToString-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_string" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/alloc/string.rs.html#2683">Source</a><a href="#method.to_string" class="anchor">§</a><h4 class="code-header">default fn <a href="https://doc.rust-lang.org/1.84.0/alloc/string/trait.ToString.html#tymethod.to_string" class="fn">to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/1.84.0/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html> |