Enum linefeed::inputrc::Directive
[−]
[src]
pub enum Directive { Bind(String, Command), Conditional { name: Option<String>, value: String, then_group: Vec<Directive>, else_group: Vec<Directive>, }, SetVariable(String, String), }
Parsed configuration directive
Variants
Bind(String, Command)
Bind construct; "input-sequence": command-or-macro
Conditional
Conditional construct;
($if name=value
or $if value
) directives
(optional $else
directives) $endif
Fields of Conditional
name: Option<String> | Value name; if |
value: String | Value to compare |
then_group: Vec<Directive> | Group of directives evaluated when condition is true |
else_group: Vec<Directive> | Group of directives evaluated when condition is false |
SetVariable(String, String)
Set variable; set name value
Trait Implementations
impl Clone for Directive
[src]
impl Clone for Directive
fn clone(&self) -> Directive
[src]
fn clone(&self) -> Directive
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Directive
[src]
impl Debug for Directive