summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKartikaya Gupta <kats@seldon.staktrace.com>2016-12-04 22:53:00 -0500
committerKartikaya Gupta <kats@seldon.staktrace.com>2016-12-04 22:53:00 -0500
commit70d178c98e253294be9fc77a4ac268dd7dd6dfaa (patch)
tree42ba010e450a44cdec558068c46576d345c7b6b4
parent73497e78a920e1eb02666b50da5c040e491f380f (diff)
Update documentation
-rw-r--r--target/doc/implementors/core/convert/trait.From.js2
-rw-r--r--target/doc/implementors/core/fmt/trait.Debug.js2
-rw-r--r--target/doc/implementors/core/fmt/trait.Display.js2
-rw-r--r--target/doc/implementors/mailparse/trait.MailHeaderMap.js2
-rw-r--r--target/doc/implementors/std/error/trait.Error.js2
-rw-r--r--target/doc/mailparse/fn.parse_content_type.html2
-rw-r--r--target/doc/mailparse/fn.parse_headers.html2
-rw-r--r--target/doc/mailparse/fn.parse_mail.html2
-rw-r--r--target/doc/mailparse/index.html2
-rw-r--r--target/doc/mailparse/struct.ParsedContentType.html2
-rw-r--r--target/doc/mailparse/struct.ParsedMail.html2
-rw-r--r--target/doc/src/mailparse/src/lib.rs.html18
12 files changed, 25 insertions, 15 deletions
diff --git a/target/doc/implementors/core/convert/trait.From.js b/target/doc/implementors/core/convert/trait.From.js
index 04e4c31..305696c 100644
--- a/target/doc/implementors/core/convert/trait.From.js
+++ b/target/doc/implementors/core/convert/trait.From.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
+implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;QuotedPrintableError&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;Base64Error&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a>&lt;<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a>&lt;'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>&gt;&gt; for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/implementors/core/fmt/trait.Debug.js b/target/doc/implementors/core/fmt/trait.Debug.js
index 8dd6c50..d493bf2 100644
--- a/target/doc/implementors/core/fmt/trait.Debug.js
+++ b/target/doc/implementors/core/fmt/trait.Debug.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];
+implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;","impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>","impl&lt;'a&gt; <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='struct' href='mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>&lt;'a&gt;",];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/implementors/core/fmt/trait.Display.js b/target/doc/implementors/core/fmt/trait.Display.js
index 05113b9..462a037 100644
--- a/target/doc/implementors/core/fmt/trait.Display.js
+++ b/target/doc/implementors/core/fmt/trait.Display.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
+implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/implementors/mailparse/trait.MailHeaderMap.js b/target/doc/implementors/mailparse/trait.MailHeaderMap.js
index fc96797..eaccbf0 100644
--- a/target/doc/implementors/mailparse/trait.MailHeaderMap.js
+++ b/target/doc/implementors/mailparse/trait.MailHeaderMap.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = [];implementors['mailparse'] = [];implementors['mailparse'] = [];implementors['mailparse'] = [];
+implementors['mailparse'] = [];implementors['mailparse'] = [];implementors['mailparse'] = [];implementors['mailparse'] = [];implementors['mailparse'] = [];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/implementors/std/error/trait.Error.js b/target/doc/implementors/std/error/trait.Error.js
index 2e22de4..f26b956 100644
--- a/target/doc/implementors/std/error/trait.Error.js
+++ b/target/doc/implementors/std/error/trait.Error.js
@@ -1,5 +1,5 @@
(function() {var implementors = {};
-implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
+implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];implementors['mailparse'] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>",];
if (window.register_implementors) {
window.register_implementors(implementors);
diff --git a/target/doc/mailparse/fn.parse_content_type.html b/target/doc/mailparse/fn.parse_content_type.html
index a437727..7e4ed82 100644
--- a/target/doc/mailparse/fn.parse_content_type.html
+++ b/target/doc/mailparse/fn.parse_content_type.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-293' class='srclink' href='../src/mailparse/src/lib.rs.html#512-537' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-293' class='srclink' href='../src/mailparse/src/lib.rs.html#511-536' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn parse_content_type(header: &amp;<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='../mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</pre><div class='docblock'><p>Helper method to parse a header value as a Content-Type header. The charset
defaults to &quot;us-ascii&quot; if no charset parameter is provided in the header
value.</p>
diff --git a/target/doc/mailparse/fn.parse_headers.html b/target/doc/mailparse/fn.parse_headers.html
index 984bce7..eb847ec 100644
--- a/target/doc/mailparse/fn.parse_headers.html
+++ b/target/doc/mailparse/fn.parse_headers.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-273' class='srclink' href='../src/mailparse/src/lib.rs.html#446-470' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-273' class='srclink' href='../src/mailparse/src/lib.rs.html#446-469' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn parse_headers(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>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='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='https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a>&lt;<a class='struct' href='../mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&gt;, <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='mailparse::MailParseError'>MailParseError</a>&gt;</pre><div class='docblock'><p>Parses all the headers from the raw data given.
This function takes raw byte data, and starts parsing it, expecting there
to be zero or more MIME header key-value pair right at the beginning,
diff --git a/target/doc/mailparse/fn.parse_mail.html b/target/doc/mailparse/fn.parse_mail.html
index d8d61bb..0cac986 100644
--- a/target/doc/mailparse/fn.parse_mail.html
+++ b/target/doc/mailparse/fn.parse_mail.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-339' class='srclink' href='../src/mailparse/src/lib.rs.html#635-679' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-339' class='srclink' href='../src/mailparse/src/lib.rs.html#634-678' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn parse_mail(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>) -&gt; <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a>&lt;<a class='struct' href='../mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>&gt;</pre><div class='docblock'><p>The main mail-parsing entry point.
This function takes the raw data making up the message body and returns a
structured version of it, which allows easily accessing the header and body
diff --git a/target/doc/mailparse/index.html b/target/doc/mailparse/index.html
index 54f0934..511aa28 100644
--- a/target/doc/mailparse/index.html
+++ b/target/doc/mailparse/index.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-0' class='srclink' href='../src/mailparse/src/lib.rs.html#1-979' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-0' class='srclink' href='../src/mailparse/src/lib.rs.html#1-984' title='goto source code'>[src]</a></span></h1>
<h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table>
<tr class=' module-item'>
diff --git a/target/doc/mailparse/struct.ParsedContentType.html b/target/doc/mailparse/struct.ParsedContentType.html
index 38b2bad..bb07277 100644
--- a/target/doc/mailparse/struct.ParsedContentType.html
+++ b/target/doc/mailparse/struct.ParsedContentType.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-281' class='srclink' href='../src/mailparse/src/lib.rs.html#476-487' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-281' class='srclink' href='../src/mailparse/src/lib.rs.html#475-486' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'>pub struct ParsedContentType {
pub mimetype: <a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>,
pub charset: <a class='struct' href='https://doc.rust-lang.org/nightly/collections/string/struct.String.html' title='collections::string::String'>String</a>,
diff --git a/target/doc/mailparse/struct.ParsedMail.html b/target/doc/mailparse/struct.ParsedMail.html
index cc1acaa..e305953 100644
--- a/target/doc/mailparse/struct.ParsedMail.html
+++ b/target/doc/mailparse/struct.ParsedMail.html
@@ -47,7 +47,7 @@
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
- </span><a id='src-301' class='srclink' href='../src/mailparse/src/lib.rs.html#544-554' title='goto source code'>[src]</a></span></h1>
+ </span><a id='src-301' class='srclink' href='../src/mailparse/src/lib.rs.html#543-553' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'>pub struct ParsedMail&lt;'a&gt; {
pub headers: <a class='struct' href='https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a>&lt;<a class='struct' href='../mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>&lt;'a&gt;&gt;,
pub ctype: <a class='struct' href='../mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>,
diff --git a/target/doc/src/mailparse/src/lib.rs.html b/target/doc/src/mailparse/src/lib.rs.html
index 104a734..7a8b65f 100644
--- a/target/doc/src/mailparse/src/lib.rs.html
+++ b/target/doc/src/mailparse/src/lib.rs.html
@@ -1021,6 +1021,11 @@
<span id="977">977</span>
<span id="978">978</span>
<span id="979">979</span>
+<span id="980">980</span>
+<span id="981">981</span>
+<span id="982">982</span>
+<span id="983">983</span>
+<span id="984">984</span>
</pre><pre class='rust '>
<span class='kw'>extern</span> <span class='kw'>crate</span> <span class='ident'>base64</span>;
<span class='kw'>extern</span> <span class='kw'>crate</span> <span class='ident'>encoding</span>;
@@ -1471,7 +1476,9 @@
<span class='kw'>let</span> <span class='kw-2'>mut</span> <span class='ident'>headers</span>: <span class='ident'>Vec</span><span class='op'>&lt;</span><span class='ident'>MailHeader</span><span class='op'>&gt;</span> <span class='op'>=</span> <span class='ident'>Vec</span>::<span class='ident'>new</span>();
<span class='kw'>let</span> <span class='kw-2'>mut</span> <span class='ident'>ix</span> <span class='op'>=</span> <span class='number'>0</span>;
<span class='kw'>loop</span> {
- <span class='kw'>if</span> <span class='ident'>raw_data</span>[<span class='ident'>ix</span>] <span class='op'>==</span> <span class='string'>b&#39;\n&#39;</span> {
+ <span class='kw'>if</span> <span class='ident'>ix</span> <span class='op'>&gt;=</span> <span class='ident'>raw_data</span>.<span class='ident'>len</span>() {
+ <span class='kw'>break</span>;
+ } <span class='kw'>else</span> <span class='kw'>if</span> <span class='ident'>raw_data</span>[<span class='ident'>ix</span>] <span class='op'>==</span> <span class='string'>b&#39;\n&#39;</span> {
<span class='ident'>ix</span> <span class='op'>=</span> <span class='ident'>ix</span> <span class='op'>+</span> <span class='number'>1</span>;
<span class='kw'>break</span>;
} <span class='kw'>else</span> <span class='kw'>if</span> <span class='ident'>raw_data</span>[<span class='ident'>ix</span>] <span class='op'>==</span> <span class='string'>b&#39;\r&#39;</span> {
@@ -1486,9 +1493,6 @@
<span class='kw'>let</span> (<span class='ident'>header</span>, <span class='ident'>ix_next</span>) <span class='op'>=</span> <span class='macro'>try</span><span class='macro'>!</span>(<span class='ident'>parse_header</span>(<span class='kw-2'>&amp;</span><span class='ident'>raw_data</span>[<span class='ident'>ix</span>..]));
<span class='ident'>headers</span>.<span class='ident'>push</span>(<span class='ident'>header</span>);
<span class='ident'>ix</span> <span class='op'>=</span> <span class='ident'>ix</span> <span class='op'>+</span> <span class='ident'>ix_next</span>;
- <span class='kw'>if</span> <span class='ident'>ix</span> <span class='op'>&gt;=</span> <span class='ident'>raw_data</span>.<span class='ident'>len</span>() {
- <span class='kw'>break</span>;
- }
}
<span class='prelude-val'>Ok</span>((<span class='ident'>headers</span>, <span class='ident'>ix</span>))
}
@@ -2000,6 +2004,12 @@
<span class='macro'>assert_eq</span><span class='macro'>!</span>(<span class='ident'>mail</span>.<span class='ident'>subparts</span>[<span class='number'>0</span>].<span class='ident'>ctype</span>.<span class='ident'>mimetype</span>, <span class='string'>&quot;text/plain&quot;</span>);
<span class='macro'>assert_eq</span><span class='macro'>!</span>(<span class='ident'>mail</span>.<span class='ident'>subparts</span>[<span class='number'>0</span>].<span class='ident'>get_body</span>().<span class='ident'>unwrap</span>(), <span class='string'>&quot;&quot;</span>);
}
+
+ <span class='attribute'>#[<span class='ident'>test</span>]</span>
+ <span class='kw'>fn</span> <span class='ident'>test_empty</span>() {
+ <span class='kw'>let</span> <span class='ident'>mail</span> <span class='op'>=</span> <span class='ident'>parse_mail</span>(<span class='string'>&quot;&quot;</span>.<span class='ident'>as_bytes</span>()).<span class='ident'>unwrap</span>();
+ <span class='macro'>assert_eq</span><span class='macro'>!</span>(<span class='ident'>mail</span>.<span class='ident'>get_body</span>().<span class='ident'>unwrap</span>(), <span class='string'>&quot;&quot;</span>);
+ }
}
</pre>
</section>