208 lines
No EOL
50 KiB
HTML
208 lines
No EOL
50 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 `MemoryTerminal` struct in crate `linefeed`.">
|
||
<meta name="keywords" content="rust, rustlang, rust-lang, MemoryTerminal">
|
||
|
||
<title>linefeed::memory::MemoryTerminal - 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 struct">
|
||
<!--[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'>Struct MemoryTerminal</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.with_size">with_size</a><a href="#method.clear_all">clear_all</a><a href="#method.clear_to_end">clear_to_end</a><a href="#method.clear_input">clear_input</a><a href="#method.has_input">has_input</a><a href="#method.lines">lines</a><a href="#method.move_up">move_up</a><a href="#method.move_down">move_down</a><a href="#method.move_left">move_left</a><a href="#method.move_right">move_right</a><a href="#method.move_to_first_col">move_to_first_col</a><a href="#method.push_input">push_input</a><a href="#method.read_input">read_input</a><a href="#method.resize">resize</a><a href="#method.scroll_up">scroll_up</a><a href="#method.cursor">cursor</a><a href="#method.set_cursor_mode">set_cursor_mode</a><a href="#method.cursor_mode">cursor_mode</a><a href="#method.size">size</a><a href="#method.write">write</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Default">Default</a><a href="#impl-Terminal">Terminal</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a></div></div><p class='location'><a href='../index.html'>linefeed</a>::<wbr><a href='index.html'>memory</a></p><script>window.sidebarCurrent = {name: 'MemoryTerminal', ty: 'struct', 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'>Struct <a href='../index.html'>linefeed</a>::<wbr><a href='index.html'>memory</a>::<wbr><a class="struct" href=''>MemoryTerminal</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/linefeed/memory.rs.html#27-29' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct MemoryTerminal { /* fields omitted */ }</pre></div><div class='docblock'><p>Implements an in-memory <code>Terminal</code> interface</p>
|
||
<p>The contents of a <code>MemoryTerminal</code> are shared. That is, cloning
|
||
a <code>MemoryTerminal</code> value will share the contained terminal buffer.</p>
|
||
</div>
|
||
<h2 id='methods' class='small-section-header'>
|
||
Methods<a href='#methods' class='anchor'></a>
|
||
</h2>
|
||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#41-168' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.with_size' class="method"><span id='with_size.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_size' class='fnname'>with_size</a>(size: <a class="struct" href="../../linefeed/terminal/struct.Size.html" title="struct linefeed::terminal::Size">Size</a>) -> <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#47-51' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a new <code>MemoryTerminal</code> with the given buffer size</p>
|
||
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
|
||
<p>If either of the <code>lines</code> or <code>columns</code> fields are <code>0</code>.</p>
|
||
</div><h4 id='method.clear_all' class="method"><span id='clear_all.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.clear_all' class='fnname'>clear_all</a>(&self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#54-56' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Clears the terminal buffer and places the cursor at <code>(0, 0)</code>.</p>
|
||
</div><h4 id='method.clear_to_end' class="method"><span id='clear_to_end.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.clear_to_end' class='fnname'>clear_to_end</a>(&self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#59-61' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Clears all characters beginning at the cursor and ending at buffer end.</p>
|
||
</div><h4 id='method.clear_input' class="method"><span id='clear_input.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.clear_input' class='fnname'>clear_input</a>(&self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#64-66' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Clears the input buffer.</p>
|
||
</div><h4 id='method.has_input' class="method"><span id='has_input.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.has_input' class='fnname'>has_input</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#69-71' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns whether any input remains to be read.</p>
|
||
</div><h4 id='method.lines' class="method"><span id='lines.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.lines' class='fnname'>lines</a>(&self) -> <a class="struct" href="../../linefeed/memory/struct.Lines.html" title="struct linefeed::memory::Lines">Lines</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#81-86' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns an iterator over lines in the buffer.</p>
|
||
<h1 id="note" class="section-header"><a href="#note">Note</a></h1>
|
||
<p>The returned iterator immutably borrows the contents of the
|
||
<code>MemoryTerminal</code>. Attempting to perform a mutating operation on the
|
||
parent <code>MemoryTerminal</code> while the <code>Lines</code> iterator lives will cause
|
||
a panic.</p>
|
||
</div><h4 id='method.move_up' class="method"><span id='move_up.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.move_up' class='fnname'>move_up</a>(&self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#89-91' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor up <code>n</code> cells.</p>
|
||
</div><h4 id='method.move_down' class="method"><span id='move_down.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.move_down' class='fnname'>move_down</a>(&self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#94-96' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor down <code>n</code> cells.</p>
|
||
</div><h4 id='method.move_left' class="method"><span id='move_left.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.move_left' class='fnname'>move_left</a>(&self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#99-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor left <code>n</code> cells.</p>
|
||
</div><h4 id='method.move_right' class="method"><span id='move_right.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.move_right' class='fnname'>move_right</a>(&self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#104-106' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor right <code>n</code> cells.</p>
|
||
</div><h4 id='method.move_to_first_col' class="method"><span id='move_to_first_col.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.move_to_first_col' class='fnname'>move_to_first_col</a>(&self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#109-111' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor to the first column of the current line.</p>
|
||
</div><h4 id='method.push_input' class="method"><span id='push_input.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.push_input' class='fnname'>push_input</a>(&self, s: &<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/linefeed/memory.rs.html#114-116' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Pushes a character sequence to the back of the input queue.</p>
|
||
</div><h4 id='method.read_input' class="method"><span id='read_input.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.read_input' class='fnname'>read_input</a>(&self, buf: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [</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>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#119-121' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Reads some input from the input buffer.</p>
|
||
</div><h4 id='method.resize' class="method"><span id='resize.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.resize' class='fnname'>resize</a>(&self, new_size: <a class="struct" href="../../linefeed/terminal/struct.Size.html" title="struct linefeed::terminal::Size">Size</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Changes the size of the terminal buffer.
|
||
The buffer will be truncated or filled with spaces, as necessary.</p>
|
||
<h1 id="panics-1" class="section-header"><a href="#panics-1">Panics</a></h1>
|
||
<p>If either of the <code>lines</code> or <code>columns</code> fields are <code>0</code> or if the area
|
||
exceeds <code>usize</code> maximum.</p>
|
||
</div><h4 id='method.scroll_up' class="method"><span id='scroll_up.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.scroll_up' class='fnname'>scroll_up</a>(&self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#136-138' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the contents of the buffer up <code>n</code> lines.
|
||
The first <code>n</code> lines of text will be erased.</p>
|
||
</div><h4 id='method.cursor' class="method"><span id='cursor.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.cursor' class='fnname'>cursor</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><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.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#141-144' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the <code>(line, column)</code> position of the cursor.</p>
|
||
</div><h4 id='method.set_cursor_mode' class="method"><span id='set_cursor_mode.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.set_cursor_mode' class='fnname'>set_cursor_mode</a>(&self, mode: <a class="enum" href="../../linefeed/terminal/enum.CursorMode.html" title="enum linefeed::terminal::CursorMode">CursorMode</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#147-149' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Sets the cursor mode.</p>
|
||
</div><h4 id='method.cursor_mode' class="method"><span id='cursor_mode.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.cursor_mode' class='fnname'>cursor_mode</a>(&self) -> <a class="enum" href="../../linefeed/terminal/enum.CursorMode.html" title="enum linefeed::terminal::CursorMode">CursorMode</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#152-154' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the cursor mode.</p>
|
||
</div><h4 id='method.size' class="method"><span id='size.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.size' class='fnname'>size</a>(&self) -> <a class="struct" href="../../linefeed/terminal/struct.Size.html" title="struct linefeed::terminal::Size">Size</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#157-159' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the size of the terminal buffer.</p>
|
||
</div><h4 id='method.write' class="method"><span id='write.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.write' class='fnname'>write</a>(&self, s: &<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/linefeed/memory.rs.html#165-167' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Writes some text into the buffer.</p>
|
||
<p>If the text extends beyond the length of the current line without a
|
||
newline character (<code>'\n'</code>), the extraneous text will be dropped.</p>
|
||
</div></div>
|
||
<h2 id='implementations' class='small-section-header'>
|
||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||
</h2>
|
||
<div id='implementations-list'>
|
||
<h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#26' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#26' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#117-119' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#26' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, __arg_0: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#26' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||
</div></div><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#170-174' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#171-173' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||
</div></div><h3 id='impl-Terminal' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../linefeed/terminal/trait.Terminal.html" title="trait linefeed::terminal::Terminal">Terminal</a> for <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code><a href='#impl-Terminal' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#342-436' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.PrepareGuard' class="type"><span id='PrepareGuard.t' class='invisible'><code>type <a href='../../linefeed/terminal/trait.Terminal.html#associatedtype.PrepareGuard' class="type">PrepareGuard</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||
<div class='docblock'><p>Returned by <code>prepare</code> and <code>read_signals</code>. When dropped, the prior terminal state will be restored. <a href="../../linefeed/terminal/trait.Terminal.html#associatedtype.PrepareGuard">Read more</a></p>
|
||
</div><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.new' class='fnname'>new</a>() -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#346-348' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Initialize the terminal interface</p>
|
||
</div><h4 id='method.eof_char' class="method"><span id='eof_char.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.eof_char' class='fnname'>eof_char</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#350' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the character that indicates end-of-file</p>
|
||
</div><h4 id='method.literal_char' class="method"><span id='literal_char.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.literal_char' class='fnname'>literal_char</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#351' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the character that indicates literal quoting sequence</p>
|
||
</div><h4 id='method.erase_char' class="method"><span id='erase_char.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.erase_char' class='fnname'>erase_char</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#352' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the character that indicates backward character erase</p>
|
||
</div><h4 id='method.word_erase_char' class="method"><span id='word_erase_char.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.word_erase_char' class='fnname'>word_erase_char</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#353' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the character that indicates backward word erase</p>
|
||
</div><h4 id='method.kill_char' class="method"><span id='kill_char.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.kill_char' class='fnname'>kill_char</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#354' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the character that indicates backward kill line</p>
|
||
</div><h4 id='method.delete_seq' class="method"><span id='delete_seq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.delete_seq' class='fnname'>delete_seq</a>(&self) -> &<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/linefeed/memory.rs.html#356' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the key sequence that indicates forward delete character</p>
|
||
</div><h4 id='method.insert_seq' class="method"><span id='insert_seq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.insert_seq' class='fnname'>insert_seq</a>(&self) -> &<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/linefeed/memory.rs.html#357' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the key sequence that indicates switching to insert mode</p>
|
||
</div><h4 id='method.name' class="method"><span id='name.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.name' class='fnname'>name</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</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/linefeed/memory.rs.html#359' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the name of the terminal, if one has been supplied</p>
|
||
</div><h4 id='method.size-1' class="method"><span id='size.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.size' class='fnname'>size</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="struct" href="../../linefeed/terminal/struct.Size.html" title="struct linefeed::terminal::Size">Size</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#361-363' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the size of the terminal window</p>
|
||
</div><h4 id='method.clear_screen' class="method"><span id='clear_screen.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.clear_screen' class='fnname'>clear_screen</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#365-368' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Presents a clear terminal screen, with cursor at first row, first column. <a href="../../linefeed/terminal/trait.Terminal.html#tymethod.clear_screen">Read more</a></p>
|
||
</div><h4 id='method.clear_to_screen_end' class="method"><span id='clear_to_screen_end.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.clear_to_screen_end' class='fnname'>clear_to_screen_end</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#370-373' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Clears characters on the line occupied by the cursor, beginning with the cursor and ending at the end of the line. Also clears all characters on all lines after the cursor. <a href="../../linefeed/terminal/trait.Terminal.html#tymethod.clear_to_screen_end">Read more</a></p>
|
||
</div><h4 id='method.move_up-1' class="method"><span id='move_up.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.move_up' class='fnname'>move_up</a>(&self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#375-378' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor up <code>n</code> cells; <code>n</code> may be zero.</p>
|
||
</div><h4 id='method.move_down-1' class="method"><span id='move_down.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.move_down' class='fnname'>move_down</a>(&self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#380-383' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor down <code>n</code> cells; <code>n</code> may be zero.</p>
|
||
</div><h4 id='method.move_left-1' class="method"><span id='move_left.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.move_left' class='fnname'>move_left</a>(&self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#385-388' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor left <code>n</code> cells; <code>n</code> may be zero.</p>
|
||
</div><h4 id='method.move_right-1' class="method"><span id='move_right.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.move_right' class='fnname'>move_right</a>(&self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#390-393' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor right <code>n</code> cells; <code>n</code> may be zero.</p>
|
||
</div><h4 id='method.move_to_first_col-1' class="method"><span id='move_to_first_col.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.move_to_first_col' class='fnname'>move_to_first_col</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#395-398' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Moves the cursor to the first column of the current line</p>
|
||
</div><h4 id='method.set_cursor_mode-1' class="method"><span id='set_cursor_mode.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.set_cursor_mode' class='fnname'>set_cursor_mode</a>(&self, mode: <a class="enum" href="../../linefeed/terminal/enum.CursorMode.html" title="enum linefeed::terminal::CursorMode">CursorMode</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#400-403' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Set the current cursor mode</p>
|
||
</div><h4 id='method.wait_for_input' class="method"><span id='wait_for_input.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.wait_for_input' class='fnname'>wait_for_input</a>(&self, _timeout: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#405-407' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Waits <code>timeout</code> for user input. If <code>timeout</code> is <code>None</code>, waits indefinitely. <a href="../../linefeed/terminal/trait.Terminal.html#tymethod.wait_for_input">Read more</a></p>
|
||
</div><h4 id='method.prepare' class="method"><span id='prepare.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.prepare' class='fnname'>prepare</a>(<br> &self, <br> _catch_signals: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br> _report_signals: <a class="struct" href="../../linefeed/terminal/struct.SignalSet.html" title="struct linefeed::terminal::SignalSet">SignalSet</a><br>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#409-410' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Prepares the terminal for line reading and editing operations. <a href="../../linefeed/terminal/trait.Terminal.html#tymethod.prepare">Read more</a></p>
|
||
</div><h4 id='method.read_signals' class="method"><span id='read_signals.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.read_signals' class='fnname'>read_signals</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#411' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Configures the terminal to interpret signal-inducing characters as input without raising a signal. <a href="../../linefeed/terminal/trait.Terminal.html#tymethod.read_signals">Read more</a></p>
|
||
</div><h4 id='method.get_signal' class="method"><span id='get_signal.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.get_signal' class='fnname'>get_signal</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../linefeed/terminal/enum.Signal.html" title="enum linefeed::terminal::Signal">Signal</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#413' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>If the process received a signal since the last call to <code>take_signal</code>, return it. Otherwise, return <code>None</code>. <a href="../../linefeed/terminal/trait.Terminal.html#tymethod.get_signal">Read more</a></p>
|
||
</div><h4 id='method.take_signal' class="method"><span id='take_signal.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.take_signal' class='fnname'>take_signal</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../linefeed/terminal/enum.Signal.html" title="enum linefeed::terminal::Signal">Signal</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#414' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>If the process received a signal since the last call to <code>take_signal</code>, consume and return it. Otherwise, return <code>None</code>. <a href="../../linefeed/terminal/trait.Terminal.html#tymethod.take_signal">Read more</a></p>
|
||
</div><h4 id='method.read' class="method"><span id='read.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.read' class='fnname'>read</a>(&self, buf: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#416-430' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Reads some input from the terminal and appends it to the given buffer. <a href="../../linefeed/terminal/trait.Terminal.html#tymethod.read">Read more</a></p>
|
||
</div><h4 id='method.write-1' class="method"><span id='write.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../linefeed/terminal/trait.Terminal.html#tymethod.write' class='fnname'>write</a>(&self, s: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/memory.rs.html#432-435' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Writes output to the terminal and immediately flushes it to the device. <a href="../../linefeed/terminal/trait.Terminal.html#tymethod.write">Read more</a></p>
|
||
</div></div></div>
|
||
<h2 id='synthetic-implementations' class='small-section-header'>
|
||
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
|
||
</h2>
|
||
<div id='synthetic-implementations-list'>
|
||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../linefeed/memory/struct.MemoryTerminal.html" title="struct linefeed::memory::MemoryTerminal">MemoryTerminal</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></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 = "linefeed";
|
||
</script>
|
||
<script src="../../main.js"></script>
|
||
<script defer src="../../search-index.js"></script>
|
||
</body>
|
||
</html> |