fn encode(&self) -> String {
        let output = json::object![
            "max_history_size" => self.max_history_size,
            "edit_mode" => match self.edit_mode {
                EditMode::Vi => "vi",
                _ /*EditMode::Emacs*/ => "emacs",
            },
            "completion_type" => match self.completion_type {
                CompletionType::Circular => "circular",
                _ /*CompletionType::List*/ => "list",
            },
            "auto_cd" => self.auto_cd,
            "aliases" => util::hash_map_to_json(&self.aliases),
            "env" => util::hash_map_to_json(&self.env),
        ];

        json::stringify_pretty(output, 2)
    }
/// Encodes config values into a JSON string.
Encodes config values into a JSON string.
Encodes config values into a JSON string .
fn encode(&self) -> String {
        let output = json::object![
            "max_history_size" => self.max_history_size,
            "edit_mode" => match self.edit_mode {
                EditMode::Vi => "vi",
                _ /*EditMode::Emacs*/ => "emacs",
            },
            "completion_type" => match self.completion_type {
                CompletionType::Circular => "circular",
                _ /*CompletionType::List*/ => "list",
            },
            "auto_cd" => self.auto_cd,
            "aliases" => util::hash_map_to_json(&self.aliases),
            "env" => util::hash_map_to_json(&self.env),
        ];
        json::stringify_pretty(output, 2)
    }
fn encode ( & self ) -> String { let output = json :: object ! [ " " self max_history_size " " match self edit_mode { EditMode Vi " " /*EditMode::Emacs*/ " " } " " match self completion_type { CompletionType Circular " " /*CompletionType::List*/ " " } " " self auto_cd " " util hash_map_to_json ( self aliases ) " " util hash_map_to_json ( self env ) ] ; json :: stringify_pretty ( output , 2 ) }
Encodes config values into a JSON string.
Encodes config values into a JSON string .
&self