Trait clog::fmt::FormatWriter
[−]
[src]
pub trait FormatWriter { fn write_changelog(&mut self, options: &Clog, section_map: &SectionMap) -> WriterResult; }
A trait that allows writing the results of a clog
run which can then be written in an
arbitrary format. The single required function write_changelog()
accepts a clog::SectionMap
which can be thought of similiar to a clog
"AST" of sorts.
clog
provides two default implementors of this traint, clog::fmt::MarkdownWriter
and
clog::fmt::JsonWriter
for writing Markdown and JSON respectively
Required Methods
fn write_changelog(&mut self, options: &Clog, section_map: &SectionMap) -> WriterResult
Writes a changelog from a given clog::SectionMap
which can be thought of as an "AST" of
sorts
Implementors
impl<'a> FormatWriter for MarkdownWriter<'a>
impl<'a> FormatWriter for JsonWriter<'a>