clog::fmt::WriterResult [] [src]

type WriterResult = Result<()Error>;

Convienience type for returning results of writing a changelog with a Clog struct

Example

let clog = Clog::new().unwrap_or_else(|e| {
    e.exit();
});

// Create a MarkdownWriter that wraps stdout
let out = io::stdout();
let mut out_buf = io::BufWriter::new(out.lock());
let mut writer = MarkdownWriter::new(&mut out_buf);

clog.write_changelog_with(&mut writer).unwrap_or_else(|e| {
    // Prints the WriterResult error and exits appropriately
    e.exit();
});