Files
tantivy/fst/raw/index.html
2018-02-12 02:52:50 +00:00

304 lines
14 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `raw` mod in crate `fst`.">
<meta name="keywords" content="rust, rustlang, rust-lang, raw">
<title>fst::raw - 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">&#9776;</div>
<p class='location'>Module raw</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../index.html'>fst</a></p><script>window.sidebarCurrent = {name: 'raw', ty: 'mod', 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'>Module <a href='../index.html'>fst</a>::<wbr><a class="mod" href=''>raw</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'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../../src/fst/raw/mod.rs.html#1-1037' title='goto source code'>[src]</a></span></h1>
<div class='docblock'><p>Operations on raw finite state transducers.</p>
<p>This sub-module exposes the guts of a finite state transducer. Many parts of
it, such as construction and traversal, are mirrored in the <code>set</code> and <code>map</code>
sub-modules. Other parts of it, such as direct access to nodes and transitions
in the transducer, do not have any analog.</p>
<h1 id="overview-of-types" class="section-header"><a href="#overview-of-types">Overview of types</a></h1>
<p><code>Fst</code> is a read only interface to pre-constructed finite state transducers.
<code>Node</code> is a read only interface to a single node in a transducer. <code>Builder</code> is
used to create new finite state transducers. (Once a transducer is created, it
can never be modified.) <code>Stream</code> is a stream of all inputs and outputs in a
transducer. <code>StreamBuilder</code> builds range queries. <code>OpBuilder</code> collects streams
and executes set operations like <code>union</code> or <code>intersection</code> on them with the
option of specifying a merge strategy for output values.</p>
<p>Most of the rest of the types are streams from set operations.</p>
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table>
<tr class=' module-item'>
<td><a class="struct" href="struct.Builder.html"
title='struct fst::raw::Builder'>Builder</a></td>
<td class='docblock-short'>
<p>A builder for creating a finite state transducer.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Difference.html"
title='struct fst::raw::Difference'>Difference</a></td>
<td class='docblock-short'>
<p>A stream of set difference over multiple fst streams in lexicographic
order.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Fst.html"
title='struct fst::raw::Fst'>Fst</a></td>
<td class='docblock-short'>
<p>An acyclic deterministic finite state transducer.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.IndexedValue.html"
title='struct fst::raw::IndexedValue'>IndexedValue</a></td>
<td class='docblock-short'>
<p>A value indexed by a stream.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Intersection.html"
title='struct fst::raw::Intersection'>Intersection</a></td>
<td class='docblock-short'>
<p>A stream of set intersection over multiple fst streams in lexicographic
order.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.MmapReadOnly.html"
title='struct fst::raw::MmapReadOnly'>MmapReadOnly</a></td>
<td class='docblock-short'>
<p>A read only view into a memory map.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Node.html"
title='struct fst::raw::Node'>Node</a></td>
<td class='docblock-short'>
<p>Node represents a single state in a finite state transducer.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.OpBuilder.html"
title='struct fst::raw::OpBuilder'>OpBuilder</a></td>
<td class='docblock-short'>
<p>A builder for collecting fst streams on which to perform set operations
on the keys of fsts.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Output.html"
title='struct fst::raw::Output'>Output</a></td>
<td class='docblock-short'>
<p>An output is a value that is associated with a key in a finite state
transducer.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Stream.html"
title='struct fst::raw::Stream'>Stream</a></td>
<td class='docblock-short'>
<p>A lexicographically ordered stream of key-value pairs from an fst.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.StreamBuilder.html"
title='struct fst::raw::StreamBuilder'>StreamBuilder</a></td>
<td class='docblock-short'>
<p>A builder for constructing range queries on streams.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.SymmetricDifference.html"
title='struct fst::raw::SymmetricDifference'>SymmetricDifference</a></td>
<td class='docblock-short'>
<p>A stream of set symmetric difference over multiple fst streams in
lexicographic order.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Transition.html"
title='struct fst::raw::Transition'>Transition</a></td>
<td class='docblock-short'>
<p>A transition from one note to another.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Transitions.html"
title='struct fst::raw::Transitions'>Transitions</a></td>
<td class='docblock-short'>
<p>An iterator over all transitions in a node.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="struct" href="struct.Union.html"
title='struct fst::raw::Union'>Union</a></td>
<td class='docblock-short'>
<p>A stream of set union over multiple fst streams in lexicographic order.</p>
</td>
</tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
<table>
<tr class=' module-item'>
<td><a class="enum" href="enum.Error.html"
title='enum fst::raw::Error'>Error</a></td>
<td class='docblock-short'>
<p>An error that occurred while using a finite state transducer.</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.VERSION.html"
title='constant fst::raw::VERSION'>VERSION</a></td>
<td class='docblock-short'>
<p>The API version of this crate.</p>
</td>
</tr></table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
<table>
<tr class=' module-item'>
<td><a class="type" href="type.CompiledAddr.html"
title='type fst::raw::CompiledAddr'>CompiledAddr</a></td>
<td class='docblock-short'>
<p>CompiledAddr is the type used to address nodes in a finite state
transducer.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class="type" href="type.FstType.html"
title='type fst::raw::FstType'>FstType</a></td>
<td class='docblock-short'>
<p>FstType is a convention used to indicate the type of the underlying
transducer.</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>&#9166;</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 = "fst";
</script>
<script src="../../main.js"></script>
<script defer src="../../search-index.js"></script>
</body>
</html>