174 lines
No EOL
25 KiB
HTML
174 lines
No EOL
25 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 `StreamOnce` trait in crate `combine`.">
|
||
<meta name="keywords" content="rust, rustlang, rust-lang, StreamOnce">
|
||
|
||
<title>combine::StreamOnce - 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="../light.css" id="themeStyle">
|
||
<script src="../storage.js"></script>
|
||
|
||
|
||
|
||
|
||
</head>
|
||
<body class="rustdoc trait">
|
||
<!--[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'>Trait StreamOnce</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Item">Item</a><a href="#associatedtype.Range">Range</a><a href="#associatedtype.Position">Position</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.uncons">uncons</a><a href="#tymethod.position">position</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-StreamOnce">&'a str</a><a href="#impl-StreamOnce">&'a [T]</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>combine</a></p><script>window.sidebarCurrent = {name: 'StreamOnce', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></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'>Trait <a href='index.html'>combine</a>::<wbr><a class="trait" href=''>StreamOnce</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/combine/primitives.rs.html#737-756' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait StreamOnce {
|
||
type <a href='#associatedtype.Item' class="type">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>;
|
||
type <a href='#associatedtype.Range' class="type">Range</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>;
|
||
type <a href='#associatedtype.Position' class="type">Position</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>;
|
||
fn <a href='#tymethod.uncons' class='fnname'>uncons</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Item" title="type combine::StreamOnce::Item">Item</a>, <a class="enum" href="../combine/primitives/enum.Error.html" title="enum combine::primitives::Error">Error</a><Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Item" title="type combine::StreamOnce::Item">Item</a>, Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Range" title="type combine::StreamOnce::Range">Range</a>>>;
|
||
<div class='item-spacer'></div> fn <a href='#tymethod.position' class='fnname'>position</a>(&self) -> Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Position" title="type combine::StreamOnce::Position">Position</a>;
|
||
}</pre></div><div class='docblock'><p><code>StreamOnce</code> represents a sequence of items that can be extracted one by one.</p>
|
||
</div>
|
||
<h2 id='associated-types' class='small-section-header'>
|
||
Associated Types<a href='#associated-types' class='anchor'></a>
|
||
</h2>
|
||
<div class='methods'>
|
||
<h3 id='associatedtype.Item' class='method'><span id='Item.t' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a></code></span></h3><div class='docblock'><p>The type of items which is yielded from this stream.</p>
|
||
</div><h3 id='associatedtype.Range' class='method'><span id='Range.t' class='invisible'><code>type <a href='#associatedtype.Range' class="type">Range</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a></code></span></h3><div class='docblock'><p>The type of a range of items yielded from this stream.
|
||
Types which do not a have a way of yielding ranges of items should just use the
|
||
<code>Self::Item</code> for this type.</p>
|
||
</div><h3 id='associatedtype.Position' class='method'><span id='Position.t' class='invisible'><code>type <a href='#associatedtype.Position' class="type">Position</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a></code></span></h3><div class='docblock'><p>Type which represents the position in a stream.
|
||
<code>Ord</code> is required to allow parsers to determine which of two positions are further ahead.</p>
|
||
</div></div>
|
||
<h2 id='required-methods' class='small-section-header'>
|
||
Required Methods<a href='#required-methods' class='anchor'></a>
|
||
</h2>
|
||
<div class='methods'>
|
||
<h3 id='tymethod.uncons' class='method'><span id='uncons.v' class='invisible'><code>fn <a href='#tymethod.uncons' class='fnname'>uncons</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Item" title="type combine::StreamOnce::Item">Item</a>, <a class="enum" href="../combine/primitives/enum.Error.html" title="enum combine::primitives::Error">Error</a><Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Item" title="type combine::StreamOnce::Item">Item</a>, Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Range" title="type combine::StreamOnce::Range">Range</a>>></code></span></h3><div class='docblock'><p>Takes a stream and removes its first item, yielding the item and the rest of the elements.
|
||
Returns <code>Err</code> if no element could be retrieved.</p>
|
||
</div><h3 id='tymethod.position' class='method'><span id='position.v' class='invisible'><code>fn <a href='#tymethod.position' class='fnname'>position</a>(&self) -> Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Position" title="type combine::StreamOnce::Position">Position</a></code></span></h3><div class='docblock'><p>Returns the current position of the stream.</p>
|
||
</div></div>
|
||
<h2 id='foreign-impls' class='small-section-header'>
|
||
Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
|
||
</h2>
|
||
<h3 id='impl-StreamOnce' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'a> <a class="trait" href="../combine/trait.StreamOnce.html" title="trait combine::StreamOnce">StreamOnce</a> for &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-StreamOnce' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/combine/primitives.rs.html#931-952' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.Item-1' class="type"><span id='Item.t-1' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code></span></h4>
|
||
<h4 id='associatedtype.Range-1' class="type"><span id='Range.t-1' class='invisible'><code>type <a href='#associatedtype.Range' class="type">Range</a> = &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span></h4>
|
||
<h4 id='associatedtype.Position-1' class="type"><span id='Position.t-1' class='invisible'><code>type <a href='#associatedtype.Position' class="type">Position</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span></h4>
|
||
<h4 id='method.uncons' class="method"><span id='uncons.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.uncons' class='fnname'>uncons</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>, <a class="enum" href="../combine/primitives/enum.Error.html" title="enum combine::primitives::Error">Error</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>, &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/combine/primitives.rs.html#937-946' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.position' class="method"><span id='position.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.position' class='fnname'>position</a>(&self) -> Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Position" title="type combine::StreamOnce::Position">Position</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/combine/primitives.rs.html#949-951' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-StreamOnce-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<'a, T> <a class="trait" href="../combine/trait.StreamOnce.html" title="trait combine::StreamOnce">StreamOnce</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [T]</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, </span></code><a href='#impl-StreamOnce-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/combine/primitives.rs.html#954-977' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.Item-2' class="type"><span id='Item.t-2' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a> = T</code></span></h4>
|
||
<h4 id='associatedtype.Range-2' class="type"><span id='Range.t-2' class='invisible'><code>type <a href='#associatedtype.Range' class="type">Range</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [T]</a></code></span></h4>
|
||
<h4 id='associatedtype.Position-2' class="type"><span id='Position.t-2' class='invisible'><code>type <a href='#associatedtype.Position' class="type">Position</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span></h4>
|
||
<h4 id='method.uncons-1' class="method"><span id='uncons.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.uncons' class='fnname'>uncons</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <a class="enum" href="../combine/primitives/enum.Error.html" title="enum combine::primitives::Error">Error</a><T, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [T]</a>>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/combine/primitives.rs.html#963-971' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.position-1' class="method"><span id='position.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.position' class='fnname'>position</a>(&self) -> Self::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Position" title="type combine::StreamOnce::Position">Position</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/combine/primitives.rs.html#974-976' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span>
|
||
<h2 id='implementors' class='small-section-header'>
|
||
Implementors<a href='#implementors' class='anchor'></a>
|
||
</h2>
|
||
<ul class='item-list' id='implementors-list'>
|
||
<li><table class='table-display'><tbody><tr><td><code>impl<I> StreamOnce for <a class="struct" href="../combine/primitives/struct.State.html" title="struct combine::primitives::State">State</a><I> <span class="where fmt-newline">where<br> I: <a class="trait" href="../combine/trait.Stream.html" title="trait combine::Stream">Stream</a>,<br> I::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Item" title="type combine::StreamOnce::Item">Item</a>: <a class="trait" href="../combine/primitives/trait.Positioner.html" title="trait combine::primitives::Positioner">Positioner</a>, </span><span class="where fmt-newline"> type <a href='#associatedtype.Item' class="type">Item</a> = I::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Item" title="type combine::StreamOnce::Item">Item</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Range' class="type">Range</a> = I::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Range" title="type combine::StreamOnce::Range">Range</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Position' class="type">Position</a> = <I::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Item" title="type combine::StreamOnce::Item">Item</a> as <a class="trait" href="../combine/primitives/trait.Positioner.html" title="trait combine::primitives::Positioner">Positioner</a>>::<a class="type" href="../combine/primitives/trait.Positioner.html#associatedtype.Position" title="type combine::primitives::Positioner::Position">Position</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/combine/primitives.rs.html#662-686' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
||
<li><table class='table-display'><tbody><tr><td><code>impl<'a, T> StreamOnce for <a class="struct" href="../combine/primitives/struct.SliceStream.html" title="struct combine::primitives::SliceStream">SliceStream</a><'a, T> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + 'a, </span><span class="where fmt-newline"> type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>T;</span><span class="where fmt-newline"> type <a href='#associatedtype.Range' class="type">Range</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [T]</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Position' class="type">Position</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/combine/primitives.rs.html#989-1012' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
||
<li><table class='table-display'><tbody><tr><td><code>impl<I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>> StreamOnce for <a class="struct" href="../combine/primitives/struct.IteratorStream.html" title="struct combine::primitives::IteratorStream">IteratorStream</a><I> <span class="where fmt-newline">where<br> I::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, </span><span class="where fmt-newline"> type <a href='#associatedtype.Item' class="type">Item</a> = I::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Range' class="type">Range</a> = I::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Position' class="type">Position</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/combine/primitives.rs.html#1094-1114' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
||
<li><table class='table-display'><tbody><tr><td><code>impl<R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a>> StreamOnce for <a class="struct" href="../combine/primitives/struct.ReadStream.html" title="struct combine::primitives::ReadStream">ReadStream</a><R><span class="where fmt-newline"> type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Range' class="type">Range</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Position' class="type">Position</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/combine/primitives.rs.html#1121-1142' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
||
<li><table class='table-display'><tbody><tr><td><code>impl<'a, I> StreamOnce for <a class="struct" href="../combine/primitives/struct.BufferedStream.html" title="struct combine::primitives::BufferedStream">BufferedStream</a><'a, I> <span class="where fmt-newline">where<br> I: <a class="trait" href="../combine/trait.StreamOnce.html" title="trait combine::StreamOnce">StreamOnce</a> + 'a,<br> I::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Position" title="type combine::StreamOnce::Position">Position</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> I::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Item" title="type combine::StreamOnce::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> + 'a, </span><span class="where fmt-newline"> type <a href='#associatedtype.Item' class="type">Item</a> = I::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Item" title="type combine::StreamOnce::Item">Item</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Range' class="type">Range</a> = I::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Range" title="type combine::StreamOnce::Range">Range</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Position' class="type">Position</a> = I::<a class="type" href="../combine/trait.StreamOnce.html#associatedtype.Position" title="type combine::StreamOnce::Position">Position</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/combine/primitives.rs.html#2028-2049' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
||
</ul><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
|
||
src="../implementors/combine/trait.StreamOnce.js">
|
||
</script></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 = "combine";
|
||
</script>
|
||
<script src="../main.js"></script>
|
||
<script defer src="../search-index.js"></script>
|
||
</body>
|
||
</html> |