mentat/docs/apis/rust/linefeed/command/enum.Command.html
2018-06-22 12:08:32 +01:00

245 lines
No EOL
35 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 `Command` enum in crate `linefeed`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Command">
<title>linefeed::command::Command - 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 enum">
<!--[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'>Enum Command</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Abort">Abort</a><a href="#variant.AcceptLine">AcceptLine</a><a href="#variant.Complete">Complete</a><a href="#variant.InsertCompletions">InsertCompletions</a><a href="#variant.PossibleCompletions">PossibleCompletions</a><a href="#variant.MenuComplete">MenuComplete</a><a href="#variant.MenuCompleteBackward">MenuCompleteBackward</a><a href="#variant.DigitArgument">DigitArgument</a><a href="#variant.SelfInsert">SelfInsert</a><a href="#variant.TabInsert">TabInsert</a><a href="#variant.OverwriteMode">OverwriteMode</a><a href="#variant.InsertComment">InsertComment</a><a href="#variant.BackwardChar">BackwardChar</a><a href="#variant.ForwardChar">ForwardChar</a><a href="#variant.CharacterSearch">CharacterSearch</a><a href="#variant.CharacterSearchBackward">CharacterSearchBackward</a><a href="#variant.BackwardWord">BackwardWord</a><a href="#variant.ForwardWord">ForwardWord</a><a href="#variant.BackwardKillLine">BackwardKillLine</a><a href="#variant.KillLine">KillLine</a><a href="#variant.BackwardKillWord">BackwardKillWord</a><a href="#variant.KillWord">KillWord</a><a href="#variant.UnixWordRubout">UnixWordRubout</a><a href="#variant.ClearScreen">ClearScreen</a><a href="#variant.BeginningOfLine">BeginningOfLine</a><a href="#variant.EndOfFile">EndOfFile</a><a href="#variant.EndOfLine">EndOfLine</a><a href="#variant.BackwardDeleteChar">BackwardDeleteChar</a><a href="#variant.DeleteChar">DeleteChar</a><a href="#variant.TransposeChars">TransposeChars</a><a href="#variant.TransposeWords">TransposeWords</a><a href="#variant.BeginningOfHistory">BeginningOfHistory</a><a href="#variant.EndOfHistory">EndOfHistory</a><a href="#variant.NextHistory">NextHistory</a><a href="#variant.PreviousHistory">PreviousHistory</a><a href="#variant.ForwardSearchHistory">ForwardSearchHistory</a><a href="#variant.ReverseSearchHistory">ReverseSearchHistory</a><a href="#variant.HistorySearchForward">HistorySearchForward</a><a href="#variant.HistorySearchBackward">HistorySearchBackward</a><a href="#variant.QuotedInsert">QuotedInsert</a><a href="#variant.Yank">Yank</a><a href="#variant.YankPop">YankPop</a><a href="#variant.Custom">Custom</a><a href="#variant.Macro">Macro</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.from_str">from_str</a><a href="#method.from_string">from_string</a><a href="#method.category">category</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-Eq">Eq</a><a href="#impl-PartialEq">PartialEq</a><a href="#impl-Display">Display</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'>command</a></p><script>window.sidebarCurrent = {name: 'Command', ty: 'enum', 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'>Enum <a href='../index.html'>linefeed</a>::<wbr><a href='index.html'>command</a>::<wbr><a class="enum" href=''>Command</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/linefeed/command.rs.html#12-18' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum Command {
Abort,
AcceptLine,
Complete,
InsertCompletions,
PossibleCompletions,
MenuComplete,
MenuCompleteBackward,
DigitArgument,
SelfInsert,
TabInsert,
OverwriteMode,
InsertComment,
BackwardChar,
ForwardChar,
CharacterSearch,
CharacterSearchBackward,
BackwardWord,
ForwardWord,
BackwardKillLine,
KillLine,
BackwardKillWord,
KillWord,
UnixWordRubout,
ClearScreen,
BeginningOfLine,
EndOfFile,
EndOfLine,
BackwardDeleteChar,
DeleteChar,
TransposeChars,
TransposeWords,
BeginningOfHistory,
EndOfHistory,
NextHistory,
PreviousHistory,
ForwardSearchHistory,
ReverseSearchHistory,
HistorySearchForward,
HistorySearchBackward,
QuotedInsert,
Yank,
YankPop,
Custom(<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'static, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;),
Macro(<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'static, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;),
}</pre></div><div class='docblock'><p>Represents a command to modify <code>Reader</code> state</p>
</div><h2 id='variants' class='variants small-section-header'>
Variants<a href='#variants' class='anchor'></a></h2>
<span id="variant.Abort" class="variant small-section-header"><a href="#variant.Abort" class="anchor field"></a><span id='Abort.v' class='invisible'><code>Abort</code></span></span><div class='docblock'><p>Abort history search</p>
</div><span id="variant.AcceptLine" class="variant small-section-header"><a href="#variant.AcceptLine" class="anchor field"></a><span id='AcceptLine.v' class='invisible'><code>AcceptLine</code></span></span><div class='docblock'><p>Accepts the current input line</p>
</div><span id="variant.Complete" class="variant small-section-header"><a href="#variant.Complete" class="anchor field"></a><span id='Complete.v' class='invisible'><code>Complete</code></span></span><div class='docblock'><p>Perform completion</p>
</div><span id="variant.InsertCompletions" class="variant small-section-header"><a href="#variant.InsertCompletions" class="anchor field"></a><span id='InsertCompletions.v' class='invisible'><code>InsertCompletions</code></span></span><div class='docblock'><p>Insert all completions into the input buffer</p>
</div><span id="variant.PossibleCompletions" class="variant small-section-header"><a href="#variant.PossibleCompletions" class="anchor field"></a><span id='PossibleCompletions.v' class='invisible'><code>PossibleCompletions</code></span></span><div class='docblock'><p>Show possible completions</p>
</div><span id="variant.MenuComplete" class="variant small-section-header"><a href="#variant.MenuComplete" class="anchor field"></a><span id='MenuComplete.v' class='invisible'><code>MenuComplete</code></span></span><div class='docblock'><p>Insert the next possible completion</p>
</div><span id="variant.MenuCompleteBackward" class="variant small-section-header"><a href="#variant.MenuCompleteBackward" class="anchor field"></a><span id='MenuCompleteBackward.v' class='invisible'><code>MenuCompleteBackward</code></span></span><div class='docblock'><p>Insert the previous possible completion</p>
</div><span id="variant.DigitArgument" class="variant small-section-header"><a href="#variant.DigitArgument" class="anchor field"></a><span id='DigitArgument.v' class='invisible'><code>DigitArgument</code></span></span><div class='docblock'><p>Begin numeric argument input</p>
</div><span id="variant.SelfInsert" class="variant small-section-header"><a href="#variant.SelfInsert" class="anchor field"></a><span id='SelfInsert.v' class='invisible'><code>SelfInsert</code></span></span><div class='docblock'><p>Insert character or sequence at the cursor</p>
</div><span id="variant.TabInsert" class="variant small-section-header"><a href="#variant.TabInsert" class="anchor field"></a><span id='TabInsert.v' class='invisible'><code>TabInsert</code></span></span><div class='docblock'><p>Inserts a tab character</p>
</div><span id="variant.OverwriteMode" class="variant small-section-header"><a href="#variant.OverwriteMode" class="anchor field"></a><span id='OverwriteMode.v' class='invisible'><code>OverwriteMode</code></span></span><div class='docblock'><p>Toggles insert/overwrite mode</p>
</div><span id="variant.InsertComment" class="variant small-section-header"><a href="#variant.InsertComment" class="anchor field"></a><span id='InsertComment.v' class='invisible'><code>InsertComment</code></span></span><div class='docblock'><p>Insert a comment and accept input</p>
</div><span id="variant.BackwardChar" class="variant small-section-header"><a href="#variant.BackwardChar" class="anchor field"></a><span id='BackwardChar.v' class='invisible'><code>BackwardChar</code></span></span><div class='docblock'><p>Move the cursor backward one character</p>
</div><span id="variant.ForwardChar" class="variant small-section-header"><a href="#variant.ForwardChar" class="anchor field"></a><span id='ForwardChar.v' class='invisible'><code>ForwardChar</code></span></span><div class='docblock'><p>Move the cursor forward one character</p>
</div><span id="variant.CharacterSearch" class="variant small-section-header"><a href="#variant.CharacterSearch" class="anchor field"></a><span id='CharacterSearch.v' class='invisible'><code>CharacterSearch</code></span></span><div class='docblock'><p>Search for a given character</p>
</div><span id="variant.CharacterSearchBackward" class="variant small-section-header"><a href="#variant.CharacterSearchBackward" class="anchor field"></a><span id='CharacterSearchBackward.v' class='invisible'><code>CharacterSearchBackward</code></span></span><div class='docblock'><p>Search backward for a given character</p>
</div><span id="variant.BackwardWord" class="variant small-section-header"><a href="#variant.BackwardWord" class="anchor field"></a><span id='BackwardWord.v' class='invisible'><code>BackwardWord</code></span></span><div class='docblock'><p>Move the cursor backward one word</p>
</div><span id="variant.ForwardWord" class="variant small-section-header"><a href="#variant.ForwardWord" class="anchor field"></a><span id='ForwardWord.v' class='invisible'><code>ForwardWord</code></span></span><div class='docblock'><p>Move the cursor forward one word</p>
</div><span id="variant.BackwardKillLine" class="variant small-section-header"><a href="#variant.BackwardKillLine" class="anchor field"></a><span id='BackwardKillLine.v' class='invisible'><code>BackwardKillLine</code></span></span><div class='docblock'><p>Kill all characters before the cursor</p>
</div><span id="variant.KillLine" class="variant small-section-header"><a href="#variant.KillLine" class="anchor field"></a><span id='KillLine.v' class='invisible'><code>KillLine</code></span></span><div class='docblock'><p>Kill all characters after the cursor</p>
</div><span id="variant.BackwardKillWord" class="variant small-section-header"><a href="#variant.BackwardKillWord" class="anchor field"></a><span id='BackwardKillWord.v' class='invisible'><code>BackwardKillWord</code></span></span><div class='docblock'><p>Kill a word before the cursor</p>
</div><span id="variant.KillWord" class="variant small-section-header"><a href="#variant.KillWord" class="anchor field"></a><span id='KillWord.v' class='invisible'><code>KillWord</code></span></span><div class='docblock'><p>Kill a word after the cursor</p>
</div><span id="variant.UnixWordRubout" class="variant small-section-header"><a href="#variant.UnixWordRubout" class="anchor field"></a><span id='UnixWordRubout.v' class='invisible'><code>UnixWordRubout</code></span></span><div class='docblock'><p>Kill a word before the cursor, delimited by whitespace</p>
</div><span id="variant.ClearScreen" class="variant small-section-header"><a href="#variant.ClearScreen" class="anchor field"></a><span id='ClearScreen.v' class='invisible'><code>ClearScreen</code></span></span><div class='docblock'><p>Clear the screen</p>
</div><span id="variant.BeginningOfLine" class="variant small-section-header"><a href="#variant.BeginningOfLine" class="anchor field"></a><span id='BeginningOfLine.v' class='invisible'><code>BeginningOfLine</code></span></span><div class='docblock'><p>Move the cursor to the beginning of the line</p>
</div><span id="variant.EndOfFile" class="variant small-section-header"><a href="#variant.EndOfFile" class="anchor field"></a><span id='EndOfFile.v' class='invisible'><code>EndOfFile</code></span></span><div class='docblock'><p>Indicates end-of-file</p>
</div><span id="variant.EndOfLine" class="variant small-section-header"><a href="#variant.EndOfLine" class="anchor field"></a><span id='EndOfLine.v' class='invisible'><code>EndOfLine</code></span></span><div class='docblock'><p>Move the cursor to the end of the line</p>
</div><span id="variant.BackwardDeleteChar" class="variant small-section-header"><a href="#variant.BackwardDeleteChar" class="anchor field"></a><span id='BackwardDeleteChar.v' class='invisible'><code>BackwardDeleteChar</code></span></span><div class='docblock'><p>Delete one character before the cursor</p>
</div><span id="variant.DeleteChar" class="variant small-section-header"><a href="#variant.DeleteChar" class="anchor field"></a><span id='DeleteChar.v' class='invisible'><code>DeleteChar</code></span></span><div class='docblock'><p>Delete one character after the cursor</p>
</div><span id="variant.TransposeChars" class="variant small-section-header"><a href="#variant.TransposeChars" class="anchor field"></a><span id='TransposeChars.v' class='invisible'><code>TransposeChars</code></span></span><div class='docblock'><p>Drag the character before the cursor forward</p>
</div><span id="variant.TransposeWords" class="variant small-section-header"><a href="#variant.TransposeWords" class="anchor field"></a><span id='TransposeWords.v' class='invisible'><code>TransposeWords</code></span></span><div class='docblock'><p>Drag the word before the cursor forward</p>
</div><span id="variant.BeginningOfHistory" class="variant small-section-header"><a href="#variant.BeginningOfHistory" class="anchor field"></a><span id='BeginningOfHistory.v' class='invisible'><code>BeginningOfHistory</code></span></span><div class='docblock'><p>Move to the first line of history</p>
</div><span id="variant.EndOfHistory" class="variant small-section-header"><a href="#variant.EndOfHistory" class="anchor field"></a><span id='EndOfHistory.v' class='invisible'><code>EndOfHistory</code></span></span><div class='docblock'><p>Move to the last line of history</p>
</div><span id="variant.NextHistory" class="variant small-section-header"><a href="#variant.NextHistory" class="anchor field"></a><span id='NextHistory.v' class='invisible'><code>NextHistory</code></span></span><div class='docblock'><p>Select next line in history</p>
</div><span id="variant.PreviousHistory" class="variant small-section-header"><a href="#variant.PreviousHistory" class="anchor field"></a><span id='PreviousHistory.v' class='invisible'><code>PreviousHistory</code></span></span><div class='docblock'><p>Select previous line in history</p>
</div><span id="variant.ForwardSearchHistory" class="variant small-section-header"><a href="#variant.ForwardSearchHistory" class="anchor field"></a><span id='ForwardSearchHistory.v' class='invisible'><code>ForwardSearchHistory</code></span></span><div class='docblock'><p>Incremental search in history</p>
</div><span id="variant.ReverseSearchHistory" class="variant small-section-header"><a href="#variant.ReverseSearchHistory" class="anchor field"></a><span id='ReverseSearchHistory.v' class='invisible'><code>ReverseSearchHistory</code></span></span><div class='docblock'><p>Incremental reverse search in history</p>
</div><span id="variant.HistorySearchForward" class="variant small-section-header"><a href="#variant.HistorySearchForward" class="anchor field"></a><span id='HistorySearchForward.v' class='invisible'><code>HistorySearchForward</code></span></span><div class='docblock'><p>Non-incremental forward history search using input up to the cursor</p>
</div><span id="variant.HistorySearchBackward" class="variant small-section-header"><a href="#variant.HistorySearchBackward" class="anchor field"></a><span id='HistorySearchBackward.v' class='invisible'><code>HistorySearchBackward</code></span></span><div class='docblock'><p>Non-incremental backward history search using input up to the cursor</p>
</div><span id="variant.QuotedInsert" class="variant small-section-header"><a href="#variant.QuotedInsert" class="anchor field"></a><span id='QuotedInsert.v' class='invisible'><code>QuotedInsert</code></span></span><div class='docblock'><p>Insert literal character</p>
</div><span id="variant.Yank" class="variant small-section-header"><a href="#variant.Yank" class="anchor field"></a><span id='Yank.v' class='invisible'><code>Yank</code></span></span><div class='docblock'><p>Insert text into buffer from the kill ring</p>
</div><span id="variant.YankPop" class="variant small-section-header"><a href="#variant.YankPop" class="anchor field"></a><span id='YankPop.v' class='invisible'><code>YankPop</code></span></span><div class='docblock'><p>Rotate the kill ring and yank the new top</p>
</div><span id="variant.Custom" class="variant small-section-header"><a href="#variant.Custom" class="anchor field"></a><span id='Custom.v' class='invisible'><code>Custom(<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'static, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;)</code></span></span><div class='docblock'><p>Custom application-defined command</p>
</div><span id="variant.Macro" class="variant small-section-header"><a href="#variant.Macro" class="anchor field"></a><span id='Macro.v' class='invisible'><code>Macro(<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'static, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;)</code></span></span><div class='docblock'><p>Execute a given key sequence</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="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</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/command.rs.html#34-60' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from_str' class="method"><span id='from_str.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.from_str' class='fnname'>from_str</a>(name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/command.rs.html#39-42' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Constructs a command from a <code>'static str</code> reference.</p>
<p>If the string does not refer to a built-in command, a value
of <code>Command::Custom(Borrowed(name))</code> will be returned.</p>
</div><h4 id='method.from_string' class="method"><span id='from_string.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.from_string' class='fnname'>from_string</a>&lt;T&gt;(name: T) -&gt; <a class="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/command.rs.html#48-52' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Constructs a command from a non-<code>'static</code> string-like type.</p>
<p>If the string does not refer to a built-in command, a value
of <code>Command::Custom(Owned(name.into()))</code> will be returned.</p>
</div></div><h3 id='impl-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</a></code><a href='#impl-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/command.rs.html#173-190' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.category' class="method"><span id='category.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.category' class='fnname'>category</a>(&amp;self) -&gt; <a class="enum" href="../../linefeed/command/enum.Category.html" title="enum linefeed::command::Category">Category</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/command.rs.html#175-189' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the category of the command</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="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</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/command.rs.html#11' 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>(&amp;self) -&gt; <a class="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/command.rs.html#11' 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>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</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="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</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/command.rs.html#11' 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>(&amp;self, __arg_0: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <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/command.rs.html#11' 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-Eq' 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/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</a></code><a href='#impl-Eq' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/command.rs.html#11' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-PartialEq' 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/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</a></code><a href='#impl-PartialEq' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/command.rs.html#11' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, __arg_0: &amp;<a class="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</a>) -&gt; <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/command.rs.html#11' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, __arg_0: &amp;<a class="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</a>) -&gt; <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/command.rs.html#11' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id='impl-Display' 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.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</a></code><a href='#impl-Display' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/linefeed/command.rs.html#23-32' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <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/command.rs.html#24-31' 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.Display.html#tymethod.fmt">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="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</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="enum" href="../../linefeed/command/enum.Command.html" title="enum linefeed::command::Command">Command</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>&#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 = "linefeed";
</script>
<script src="../../main.js"></script>
<script defer src="../../search-index.js"></script>
</body>
</html>