summaryrefslogtreecommitdiffstats
path: root/target/doc/mailparse/fn.parse_header.html
diff options
context:
space:
mode:
Diffstat (limited to 'target/doc/mailparse/fn.parse_header.html')
-rw-r--r--target/doc/mailparse/fn.parse_header.html40
1 files changed, 27 insertions, 13 deletions
diff --git a/target/doc/mailparse/fn.parse_header.html b/target/doc/mailparse/fn.parse_header.html
index b0f9c20..af3e3c8 100644
--- a/target/doc/mailparse/fn.parse_header.html
+++ b/target/doc/mailparse/fn.parse_header.html
@@ -10,8 +10,11 @@
<title>mailparse::parse_header - Rust</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
- <link rel="stylesheet" type="text/css" href="../rustdoc.css">
- <link rel="stylesheet" type="text/css" href="../main.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="../main.css" id="themeStyle">
+ <script src="../storage.js"></script>
@@ -28,10 +31,18 @@
<nav class="sidebar">
+ <div class="sidebar-menu">&#9776;</div>
<p class='location'><a href='index.html'>mailparse</a></p><script>window.sidebarCurrent = {name: 'parse_header', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script>
</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">
@@ -48,7 +59,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a class='srclink' href='../src/mailparse/lib.rs.html#299-378' title='goto source code'>[src]</a></span></h1>
+ </span><a class='srclink' href='../src/mailparse/lib.rs.html#298-377' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn parse_header(<br>&nbsp;&nbsp;&nbsp;&nbsp;raw_data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../mailparse/struct.MailHeader.html" title="struct mailparse::MailHeader">MailHeader</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="enum" href="../mailparse/enum.MailParseError.html" title="enum mailparse::MailParseError">MailParseError</a>&gt;</pre><div class='docblock'><p>Parse a single header from the raw data given.
This function takes raw byte data, and starts parsing it, expecting there
to be a MIME header key-value pair right at the beginning. It parses that
@@ -57,10 +68,9 @@ expected to start. If you just want to parse a single header, you can ignore
the second component of the tuple, which is the index of the next header.
Error values are returned if the data could not be successfully interpreted
as a MIME key-value pair.</p>
-
-<h1 id='examples' class='section-header'><a href='#examples'>Examples</a></h1>
+<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<pre class="rust rust-example-rendered">
-<span class="kw">use</span> <span class="ident">mailparse</span>::<span class="ident">parse_header</span>;
+ <span class="kw">use</span> <span class="ident">mailparse</span>::<span class="ident">parse_header</span>;
<span class="kw">let</span> (<span class="ident">parsed</span>, _) <span class="op">=</span> <span class="ident">parse_header</span>(<span class="macro">concat</span><span class="macro">!</span>(
<span class="string">&quot;Subject: Hello, sir,\n&quot;</span>,
<span class="string">&quot; I am multiline\n&quot;</span>,
@@ -81,18 +91,22 @@ as a MIME key-value pair.</p>
<h2>Keyboard Shortcuts</h2>
<dl>
- <dt>?</dt>
+ <dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
- <dt>S</dt>
+ <dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
- <dt>&larrb;</dt>
+ <dt><kbd>↑</kbd></dt>
<dd>Move up in search results</dd>
- <dt>&rarrb;</dt>
+ <dt><kbd>↓</kbd></dt>
<dd>Move down in search results</dd>
- <dt>&#9166;</dt>
+ <dt><kbd>↹</kbd></dt>
+ <dd>Switch tab</dd>
+ <dt><kbd>&#9166;</kbd></dt>
<dd>Go to active search result</dd>
- <dt>+</dt>
- <dd>Collapse/expand all sections</dd>
+ <dt><kbd>+</kbd></dt>
+ <dd>Expand all sections</dd>
+ <dt><kbd>-</kbd></dt>
+ <dd>Collapse all sections</dd>
</dl>
</div>