[−][src]Function scrawl::with
pub fn with(content: &str) -> Result<String, ScrawlError>
New opens an text buffer with the contents of the provided String in an editor. Returns a Result
Example
fn main() { let output = match scrawl::with("Hello World!") { Ok(s) => s, Err(e) => e.to_string() }; println!("{}", output); }