edit_string_mut

Function edit_string_mut 

Source
pub fn edit_string_mut(string: &mut String) -> Result<(), OpenEditorError>
Expand description

Edit a mutable string in place using the default editor.

This is a static convenience method equivalent to EditorCallBuilder::new().edit_string_mut(string).

ยงErrors

Returns an error if the editor call fails, or if the temporary file cannot be read or cleaned up.