/// Writes a changelog with a specified `FormatWriter` format
///
/// # Examples
///
/// ```no_run
/// # use clog::Clog;
/// # use clog::fmt::{FormatWriter, MarkdownWriter};
/// # use std::io;
/// let clog = Clog::new().unwrap_or_else(|e| {
///     e.exit();
/// });
///
/// // Write changelog to stdout in Markdown format
/// 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 error and exits appropriately
///     e.exit();
/// });
/// ```
Writes a changelog with a specified `FormatWriter` format
Writes a changelog with a specified ` FormatWriter ` format
pub fn write_changelog_with<W>(&self, writer: &mut W) -> WriterResult
        where W: FormatWriter {
        debugln!("Writing changelog from writer");
        let sm = SectionMap::from_commits(self.get_commits());
        try!(writer.write_changelog(self, &sm));
        Ok(())
    }
pub fn write_changelog_with < W > ( & self , writer : & mut W ) -> WriterResult where W : FormatWriter { debugln ! ( " " ) ; let sm = SectionMap :: from_commits ( self . get_commits ( ) ) ; try ! ( writer write_changelog ( self sm ) ) ; Ok ( ( ) ) }
Writes a changelog with a specified `FormatWriter` format
Writes a changelog with a specified ` FormatWriter ` format
&self
writer
&mut W
examples
None
use clog::clog;
None
use clog::fmt::{formatwriter, markdownwriter};
None
use std::io;


Write changelog to stdout in Markdown format
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 error and exits appropriately
e.exit();
});
```
Write changelog to stdout in Markdown format 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 error and exits appropriately e . exit () ; } ) ; ` ` `