280 lines
No EOL
15 KiB
HTML
280 lines
No EOL
15 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 `quirks` mod in crate `url`.">
|
||
<meta name="keywords" content="rust, rustlang, rust-lang, quirks">
|
||
|
||
<title>url::quirks - Rust</title>
|
||
|
||
<link rel="stylesheet" type="text/css" href="../../rustdoc.css">
|
||
<link rel="stylesheet" type="text/css" href="../../main.css">
|
||
|
||
|
||
|
||
|
||
</head>
|
||
<body class="rustdoc">
|
||
<!--[if lte IE 8]>
|
||
<div class="warning">
|
||
This old browser is unsupported and will most likely display funky
|
||
things.
|
||
</div>
|
||
<![endif]-->
|
||
|
||
|
||
|
||
<nav class="sidebar">
|
||
|
||
<p class='location'><a href='../index.html'>url</a></p><script>window.sidebarCurrent = {name: 'quirks', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script>
|
||
</nav>
|
||
|
||
<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 mod">
|
||
<h1 class='fqn'><span class='in-band'>Module <a href='../index.html'>url</a>::<wbr><a class='mod' href=''>quirks</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 id='src-1585' class='srclink' href='../../src/url/quirks.rs.html#9-217' title='goto source code'>[src]</a></span></h1>
|
||
<div class='docblock'><p>Getters and setters for URL components implemented per <a href="https://url.spec.whatwg.org/#api">https://url.spec.whatwg.org/#api</a></p>
|
||
|
||
<p>Unless you need to be interoperable with web browsers,
|
||
you probably want to use <code>Url</code> method instead.</p>
|
||
</div><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||
<table>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.domain_to_ascii.html'
|
||
title='url::quirks::domain_to_ascii'>domain_to_ascii</a></td>
|
||
<td class='docblock short'>
|
||
<p><a href="https://url.spec.whatwg.org/#dom-url-domaintoascii">https://url.spec.whatwg.org/#dom-url-domaintoascii</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.domain_to_unicode.html'
|
||
title='url::quirks::domain_to_unicode'>domain_to_unicode</a></td>
|
||
<td class='docblock short'>
|
||
<p><a href="https://url.spec.whatwg.org/#dom-url-domaintounicode">https://url.spec.whatwg.org/#dom-url-domaintounicode</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.hash.html'
|
||
title='url::quirks::hash'>hash</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-hash">https://url.spec.whatwg.org/#dom-url-hash</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.host.html'
|
||
title='url::quirks::host'>host</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-host">https://url.spec.whatwg.org/#dom-url-host</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.hostname.html'
|
||
title='url::quirks::hostname'>hostname</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-hostname">https://url.spec.whatwg.org/#dom-url-hostname</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.href.html'
|
||
title='url::quirks::href'>href</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-href">https://url.spec.whatwg.org/#dom-url-href</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.origin.html'
|
||
title='url::quirks::origin'>origin</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-origin">https://url.spec.whatwg.org/#dom-url-origin</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.password.html'
|
||
title='url::quirks::password'>password</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-password">https://url.spec.whatwg.org/#dom-url-password</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.pathname.html'
|
||
title='url::quirks::pathname'>pathname</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-pathname">https://url.spec.whatwg.org/#dom-url-pathname</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.port.html'
|
||
title='url::quirks::port'>port</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-port">https://url.spec.whatwg.org/#dom-url-port</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.protocol.html'
|
||
title='url::quirks::protocol'>protocol</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-protocol">https://url.spec.whatwg.org/#dom-url-protocol</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.search.html'
|
||
title='url::quirks::search'>search</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-search">https://url.spec.whatwg.org/#dom-url-search</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_hash.html'
|
||
title='url::quirks::set_hash'>set_hash</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-hash">https://url.spec.whatwg.org/#dom-url-hash</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_host.html'
|
||
title='url::quirks::set_host'>set_host</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-host">https://url.spec.whatwg.org/#dom-url-host</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_hostname.html'
|
||
title='url::quirks::set_hostname'>set_hostname</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-hostname">https://url.spec.whatwg.org/#dom-url-hostname</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_href.html'
|
||
title='url::quirks::set_href'>set_href</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-href">https://url.spec.whatwg.org/#dom-url-href</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_password.html'
|
||
title='url::quirks::set_password'>set_password</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-password">https://url.spec.whatwg.org/#dom-url-password</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_pathname.html'
|
||
title='url::quirks::set_pathname'>set_pathname</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-pathname">https://url.spec.whatwg.org/#dom-url-pathname</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_port.html'
|
||
title='url::quirks::set_port'>set_port</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-port">https://url.spec.whatwg.org/#dom-url-port</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_protocol.html'
|
||
title='url::quirks::set_protocol'>set_protocol</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-protocol">https://url.spec.whatwg.org/#dom-url-protocol</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_search.html'
|
||
title='url::quirks::set_search'>set_search</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-search">https://url.spec.whatwg.org/#dom-url-search</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.set_username.html'
|
||
title='url::quirks::set_username'>set_username</a></td>
|
||
<td class='docblock short'>
|
||
<p>Setter for <a href="https://url.spec.whatwg.org/#dom-url-username">https://url.spec.whatwg.org/#dom-url-username</a></p>
|
||
</td>
|
||
</tr>
|
||
<tr class=' module-item'>
|
||
<td><a class='fn' href='fn.username.html'
|
||
title='url::quirks::username'>username</a></td>
|
||
<td class='docblock short'>
|
||
<p>Getter for <a href="https://url.spec.whatwg.org/#dom-url-username">https://url.spec.whatwg.org/#dom-url-username</a></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>?</dt>
|
||
<dd>Show this help dialog</dd>
|
||
<dt>S</dt>
|
||
<dd>Focus the search field</dd>
|
||
<dt>⇤</dt>
|
||
<dd>Move up in search results</dd>
|
||
<dt>⇥</dt>
|
||
<dd>Move down in search results</dd>
|
||
<dt>⏎</dt>
|
||
<dd>Go to active search result</dd>
|
||
<dt>+</dt>
|
||
<dd>Collapse/expand 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 = "url";
|
||
window.playgroundUrl = "";
|
||
</script>
|
||
<script src="../../jquery.js"></script>
|
||
<script src="../../main.js"></script>
|
||
|
||
<script defer src="../../search-index.js"></script>
|
||
</body>
|
||
</html> |