740 lines
No EOL
35 KiB
HTML
740 lines
No EOL
35 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="API documentation for the Rust `mime` crate.">
|
||
<meta name="keywords" content="rust, rustlang, rust-lang, mime">
|
||
|
||
<title>mime - Rust</title>
|
||
|
||
<link rel="stylesheet" type="text/css" href="../normalize.css">
|
||
<link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle">
|
||
|
||
<link rel="stylesheet" type="text/css" href="../dark.css">
|
||
<link rel="stylesheet" type="text/css" href="../main.css" id="themeStyle">
|
||
<script src="../storage.js"></script>
|
||
|
||
|
||
|
||
|
||
</head>
|
||
<body class="rustdoc mod">
|
||
<!--[if lte IE 8]>
|
||
<div class="warning">
|
||
This old browser is unsupported and will most likely display funky
|
||
things.
|
||
</div>
|
||
<![endif]-->
|
||
|
||
|
||
|
||
<nav class="sidebar">
|
||
<div class="sidebar-menu">☰</div>
|
||
|
||
<p class='location'>Crate mime</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'mime', ty: 'mod', relpath: '../'};</script></div>
|
||
</nav>
|
||
|
||
<div class="theme-picker">
|
||
<button id="theme-picker" aria-label="Pick another theme!">
|
||
<img src="../brush.svg" width="18" alt="Pick another theme!">
|
||
</button>
|
||
<div id="theme-choices"></div>
|
||
</div>
|
||
<script src="../theme.js"></script>
|
||
<nav class="sub">
|
||
<form class="search-form js-only">
|
||
<div class="search-container">
|
||
<input class="search-input" name="search"
|
||
autocomplete="off"
|
||
placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
|
||
type="search">
|
||
</div>
|
||
</form>
|
||
</nav>
|
||
|
||
<section id='main' class="content">
|
||
<h1 class='fqn'><span class='in-band'>Crate <a class="mod" href=''>mime</a></span><span class='out-of-band'><span id='render-detail'>
|
||
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
|
||
[<span class='inner'>−</span>]
|
||
</a>
|
||
</span><a class='srclink' href='../src/mime/lib.rs.html#1-871' title='goto source code'>[src]</a></span></h1>
|
||
<div class='docblock'><h1 id="mime" class="section-header"><a href="#mime">Mime</a></h1>
|
||
<p>Mime is now Media Type, technically, but <code>Mime</code> is more immediately
|
||
understandable, so the main type here is <code>Mime</code>.</p>
|
||
<h2 id="what-is-mime" class="section-header"><a href="#what-is-mime">What is Mime?</a></h2>
|
||
<p>Example mime string: <code>text/plain</code></p>
|
||
|
||
<pre class="rust rust-example-rendered">
|
||
<span class="kw">let</span> <span class="ident">plain_text</span>: <span class="ident">mime</span>::<span class="ident">Mime</span> <span class="op">=</span> <span class="string">"text/plain"</span>.<span class="ident">parse</span>().<span class="ident">unwrap</span>();
|
||
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">plain_text</span>, <span class="ident">mime</span>::<span class="ident">TEXT_PLAIN</span>);</pre>
|
||
<h2 id="inspecting-mimes" class="section-header"><a href="#inspecting-mimes">Inspecting Mimes</a></h2>
|
||
<pre class="rust rust-example-rendered">
|
||
<span class="kw">let</span> <span class="ident">mime</span> <span class="op">=</span> <span class="ident">mime</span>::<span class="ident">TEXT_PLAIN</span>;
|
||
<span class="kw">match</span> (<span class="ident">mime</span>.<span class="ident">type_</span>(), <span class="ident">mime</span>.<span class="ident">subtype</span>()) {
|
||
(<span class="ident">mime</span>::<span class="ident">TEXT</span>, <span class="ident">mime</span>::<span class="ident">PLAIN</span>) <span class="op">=></span> <span class="macro">println</span><span class="macro">!</span>(<span class="string">"plain text!"</span>),
|
||
(<span class="ident">mime</span>::<span class="ident">TEXT</span>, _) <span class="op">=></span> <span class="macro">println</span><span class="macro">!</span>(<span class="string">"structured text"</span>),
|
||
_ <span class="op">=></span> <span class="macro">println</span><span class="macro">!</span>(<span class="string">"not text"</span>),
|
||
}</pre>
|
||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||
<table>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.FromStrError.html"
|
||
title='struct mime::FromStrError'>FromStrError</a></td>
|
||
<td class='docblock-short'>
|
||
<p>An error when parsing a <code>Mime</code> from a string.</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Mime.html"
|
||
title='struct mime::Mime'>Mime</a></td>
|
||
<td class='docblock-short'>
|
||
<p>A parsed mime or media type.</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Name.html"
|
||
title='struct mime::Name'>Name</a></td>
|
||
<td class='docblock-short'>
|
||
<p>A section of a <code>Mime</code>.</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="struct" href="struct.Params.html"
|
||
title='struct mime::Params'>Params</a></td>
|
||
<td class='docblock-short'>
|
||
<p>An iterator over the parameters of a MIME.</p>
|
||
|
||
</td>
|
||
</tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
|
||
<table>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.APPLICATION.html"
|
||
title='constant mime::APPLICATION'>APPLICATION</a></td>
|
||
<td class='docblock-short'>
|
||
<p>application</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.APPLICATION_JAVASCRIPT.html"
|
||
title='constant mime::APPLICATION_JAVASCRIPT'>APPLICATION_JAVASCRIPT</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>application/javascript</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.APPLICATION_JAVASCRIPT_UTF_8.html"
|
||
title='constant mime::APPLICATION_JAVASCRIPT_UTF_8'>APPLICATION_JAVASCRIPT_UTF_8</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>application/javascript; charset=utf-8</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.APPLICATION_JSON.html"
|
||
title='constant mime::APPLICATION_JSON'>APPLICATION_JSON</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>application/json</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.APPLICATION_MSGPACK.html"
|
||
title='constant mime::APPLICATION_MSGPACK'>APPLICATION_MSGPACK</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>application/msgpack</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.APPLICATION_OCTET_STREAM.html"
|
||
title='constant mime::APPLICATION_OCTET_STREAM'>APPLICATION_OCTET_STREAM</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>application/octet-stream</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.APPLICATION_PDF.html"
|
||
title='constant mime::APPLICATION_PDF'>APPLICATION_PDF</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>application/pdf</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.APPLICATION_WWW_FORM_URLENCODED.html"
|
||
title='constant mime::APPLICATION_WWW_FORM_URLENCODED'>APPLICATION_WWW_FORM_URLENCODED</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>application/x-www-form-urlencoded</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.AUDIO.html"
|
||
title='constant mime::AUDIO'>AUDIO</a></td>
|
||
<td class='docblock-short'>
|
||
<p>audio</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.BASIC.html"
|
||
title='constant mime::BASIC'>BASIC</a></td>
|
||
<td class='docblock-short'>
|
||
<p>basic</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.BMP.html"
|
||
title='constant mime::BMP'>BMP</a></td>
|
||
<td class='docblock-short'>
|
||
<p>bmp</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.BOUNDARY.html"
|
||
title='constant mime::BOUNDARY'>BOUNDARY</a></td>
|
||
<td class='docblock-short'>
|
||
<p>boundary</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.CHARSET.html"
|
||
title='constant mime::CHARSET'>CHARSET</a></td>
|
||
<td class='docblock-short'>
|
||
<p>charset</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.CSS.html"
|
||
title='constant mime::CSS'>CSS</a></td>
|
||
<td class='docblock-short'>
|
||
<p>css</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.CSV.html"
|
||
title='constant mime::CSV'>CSV</a></td>
|
||
<td class='docblock-short'>
|
||
<p>csv</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.EVENT_STREAM.html"
|
||
title='constant mime::EVENT_STREAM'>EVENT_STREAM</a></td>
|
||
<td class='docblock-short'>
|
||
<p>event-stream</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.FONT.html"
|
||
title='constant mime::FONT'>FONT</a></td>
|
||
<td class='docblock-short'>
|
||
<p>font</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.FONT_WOFF.html"
|
||
title='constant mime::FONT_WOFF'>FONT_WOFF</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>font/woff</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.FONT_WOFF2.html"
|
||
title='constant mime::FONT_WOFF2'>FONT_WOFF2</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>font/woff2</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.FORM_DATA.html"
|
||
title='constant mime::FORM_DATA'>FORM_DATA</a></td>
|
||
<td class='docblock-short'>
|
||
<p>form-data</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.GIF.html"
|
||
title='constant mime::GIF'>GIF</a></td>
|
||
<td class='docblock-short'>
|
||
<p>gif</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.HTML.html"
|
||
title='constant mime::HTML'>HTML</a></td>
|
||
<td class='docblock-short'>
|
||
<p>html</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.IMAGE.html"
|
||
title='constant mime::IMAGE'>IMAGE</a></td>
|
||
<td class='docblock-short'>
|
||
<p>image</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.IMAGE_BMP.html"
|
||
title='constant mime::IMAGE_BMP'>IMAGE_BMP</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>image/bmp</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.IMAGE_GIF.html"
|
||
title='constant mime::IMAGE_GIF'>IMAGE_GIF</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>image/gif</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.IMAGE_JPEG.html"
|
||
title='constant mime::IMAGE_JPEG'>IMAGE_JPEG</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>image/jpeg</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.IMAGE_PNG.html"
|
||
title='constant mime::IMAGE_PNG'>IMAGE_PNG</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>image/png</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.IMAGE_STAR.html"
|
||
title='constant mime::IMAGE_STAR'>IMAGE_STAR</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>image/*</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.IMAGE_SVG.html"
|
||
title='constant mime::IMAGE_SVG'>IMAGE_SVG</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>image/svg+xml</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.JAVASCRIPT.html"
|
||
title='constant mime::JAVASCRIPT'>JAVASCRIPT</a></td>
|
||
<td class='docblock-short'>
|
||
<p>javascript</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.JPEG.html"
|
||
title='constant mime::JPEG'>JPEG</a></td>
|
||
<td class='docblock-short'>
|
||
<p>jpeg</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.JSON.html"
|
||
title='constant mime::JSON'>JSON</a></td>
|
||
<td class='docblock-short'>
|
||
<p>json</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.MESSAGE.html"
|
||
title='constant mime::MESSAGE'>MESSAGE</a></td>
|
||
<td class='docblock-short'>
|
||
<p>message</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.MODEL.html"
|
||
title='constant mime::MODEL'>MODEL</a></td>
|
||
<td class='docblock-short'>
|
||
<p>model</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.MP4.html"
|
||
title='constant mime::MP4'>MP4</a></td>
|
||
<td class='docblock-short'>
|
||
<p>mp4</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.MPEG.html"
|
||
title='constant mime::MPEG'>MPEG</a></td>
|
||
<td class='docblock-short'>
|
||
<p>mpeg</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.MSGPACK.html"
|
||
title='constant mime::MSGPACK'>MSGPACK</a></td>
|
||
<td class='docblock-short'>
|
||
<p>msgpack</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.MULTIPART.html"
|
||
title='constant mime::MULTIPART'>MULTIPART</a></td>
|
||
<td class='docblock-short'>
|
||
<p>multipart</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.MULTIPART_FORM_DATA.html"
|
||
title='constant mime::MULTIPART_FORM_DATA'>MULTIPART_FORM_DATA</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>multipart/form-data</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.OCTET_STREAM.html"
|
||
title='constant mime::OCTET_STREAM'>OCTET_STREAM</a></td>
|
||
<td class='docblock-short'>
|
||
<p>octet-stream</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.OGG.html"
|
||
title='constant mime::OGG'>OGG</a></td>
|
||
<td class='docblock-short'>
|
||
<p>ogg</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.PDF.html"
|
||
title='constant mime::PDF'>PDF</a></td>
|
||
<td class='docblock-short'>
|
||
<p>pdf</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.PLAIN.html"
|
||
title='constant mime::PLAIN'>PLAIN</a></td>
|
||
<td class='docblock-short'>
|
||
<p>plain</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.PNG.html"
|
||
title='constant mime::PNG'>PNG</a></td>
|
||
<td class='docblock-short'>
|
||
<p>png</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.STAR.html"
|
||
title='constant mime::STAR'>STAR</a></td>
|
||
<td class='docblock-short'>
|
||
<ul>
|
||
<li></li>
|
||
</ul>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.STAR_STAR.html"
|
||
title='constant mime::STAR_STAR'>STAR_STAR</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>*/*</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.SVG.html"
|
||
title='constant mime::SVG'>SVG</a></td>
|
||
<td class='docblock-short'>
|
||
<p>svg</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT.html"
|
||
title='constant mime::TEXT'>TEXT</a></td>
|
||
<td class='docblock-short'>
|
||
<p>text</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_CSS.html"
|
||
title='constant mime::TEXT_CSS'>TEXT_CSS</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/css</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_CSS_UTF_8.html"
|
||
title='constant mime::TEXT_CSS_UTF_8'>TEXT_CSS_UTF_8</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/css; charset=utf-8</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_CSV.html"
|
||
title='constant mime::TEXT_CSV'>TEXT_CSV</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/csv</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_CSV_UTF_8.html"
|
||
title='constant mime::TEXT_CSV_UTF_8'>TEXT_CSV_UTF_8</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/csv; charset=utf-8</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_EVENT_STREAM.html"
|
||
title='constant mime::TEXT_EVENT_STREAM'>TEXT_EVENT_STREAM</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/event-stream</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_HTML.html"
|
||
title='constant mime::TEXT_HTML'>TEXT_HTML</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/html</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_HTML_UTF_8.html"
|
||
title='constant mime::TEXT_HTML_UTF_8'>TEXT_HTML_UTF_8</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/html; charset=utf-8</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_JAVASCRIPT.html"
|
||
title='constant mime::TEXT_JAVASCRIPT'>TEXT_JAVASCRIPT</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/javascript</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_PLAIN.html"
|
||
title='constant mime::TEXT_PLAIN'>TEXT_PLAIN</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/plain</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_PLAIN_UTF_8.html"
|
||
title='constant mime::TEXT_PLAIN_UTF_8'>TEXT_PLAIN_UTF_8</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/plain; charset=utf-8</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_STAR.html"
|
||
title='constant mime::TEXT_STAR'>TEXT_STAR</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/*</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_TAB_SEPARATED_VALUES.html"
|
||
title='constant mime::TEXT_TAB_SEPARATED_VALUES'>TEXT_TAB_SEPARATED_VALUES</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/tab-separated-values</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_TAB_SEPARATED_VALUES_UTF_8.html"
|
||
title='constant mime::TEXT_TAB_SEPARATED_VALUES_UTF_8'>TEXT_TAB_SEPARATED_VALUES_UTF_8</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/tab-separated-values; charset=utf-8</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_VCARD.html"
|
||
title='constant mime::TEXT_VCARD'>TEXT_VCARD</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/vcard</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.TEXT_XML.html"
|
||
title='constant mime::TEXT_XML'>TEXT_XML</a></td>
|
||
<td class='docblock-short'>
|
||
<p><code>text/xml</code></p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.UTF_8.html"
|
||
title='constant mime::UTF_8'>UTF_8</a></td>
|
||
<td class='docblock-short'>
|
||
<p>utf-8</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.VCARD.html"
|
||
title='constant mime::VCARD'>VCARD</a></td>
|
||
<td class='docblock-short'>
|
||
<p>vcard</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.VIDEO.html"
|
||
title='constant mime::VIDEO'>VIDEO</a></td>
|
||
<td class='docblock-short'>
|
||
<p>video</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.WOFF.html"
|
||
title='constant mime::WOFF'>WOFF</a></td>
|
||
<td class='docblock-short'>
|
||
<p>woff</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.WOFF2.html"
|
||
title='constant mime::WOFF2'>WOFF2</a></td>
|
||
<td class='docblock-short'>
|
||
<p>woff2</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.WWW_FORM_URLENCODED.html"
|
||
title='constant mime::WWW_FORM_URLENCODED'>WWW_FORM_URLENCODED</a></td>
|
||
<td class='docblock-short'>
|
||
<p>x-www-form-urlencoded</p>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class="constant" href="constant.XML.html"
|
||
title='constant mime::XML'>XML</a></td>
|
||
<td class='docblock-short'>
|
||
<p>xml</p>
|
||
|
||
</td>
|
||
</tr></table></section>
|
||
<section id='search' class="content hidden"></section>
|
||
|
||
<section class="footer"></section>
|
||
|
||
<aside id="help" class="hidden">
|
||
<div>
|
||
<h1 class="hidden">Help</h1>
|
||
|
||
<div class="shortcuts">
|
||
<h2>Keyboard Shortcuts</h2>
|
||
|
||
<dl>
|
||
<dt><kbd>?</kbd></dt>
|
||
<dd>Show this help dialog</dd>
|
||
<dt><kbd>S</kbd></dt>
|
||
<dd>Focus the search field</dd>
|
||
<dt><kbd>↑</kbd></dt>
|
||
<dd>Move up in search results</dd>
|
||
<dt><kbd>↓</kbd></dt>
|
||
<dd>Move down in search results</dd>
|
||
<dt><kbd>↹</kbd></dt>
|
||
<dd>Switch tab</dd>
|
||
<dt><kbd>⏎</kbd></dt>
|
||
<dd>Go to active search result</dd>
|
||
<dt><kbd>+</kbd></dt>
|
||
<dd>Expand all sections</dd>
|
||
<dt><kbd>-</kbd></dt>
|
||
<dd>Collapse all sections</dd>
|
||
</dl>
|
||
</div>
|
||
|
||
<div class="infos">
|
||
<h2>Search Tricks</h2>
|
||
|
||
<p>
|
||
Prefix searches with a type followed by a colon (e.g.
|
||
<code>fn:</code>) to restrict the search to a given type.
|
||
</p>
|
||
|
||
<p>
|
||
Accepted types are: <code>fn</code>, <code>mod</code>,
|
||
<code>struct</code>, <code>enum</code>,
|
||
<code>trait</code>, <code>type</code>, <code>macro</code>,
|
||
and <code>const</code>.
|
||
</p>
|
||
|
||
<p>
|
||
Search functions by type signature (e.g.
|
||
<code>vec -> usize</code> or <code>* -> vec</code>)
|
||
</p>
|
||
</div>
|
||
</div>
|
||
</aside>
|
||
|
||
|
||
|
||
<script>
|
||
window.rootPath = "../";
|
||
window.currentCrate = "mime";
|
||
</script>
|
||
<script src="../main.js"></script>
|
||
<script defer src="../search-index.js"></script>
|
||
</body>
|
||
</html> |