Trait libpijul::graph::LineBuffer
[−]
[src]
pub trait LineBuffer<'a, T: 'a + Transaction> { fn output_line(
&mut self,
key: &Key<PatchId>,
contents: Value<'a, T>
) -> Result<()>; fn output_conflict_marker(&mut self, s: &'a str) -> Result<()>; fn begin_conflict(&mut self) -> Result<()> { ... } fn conflict_next(&mut self) -> Result<()> { ... } fn end_conflict(&mut self) -> Result<()> { ... } }
A "line outputter" trait.
Required Methods
fn output_line(
&mut self,
key: &Key<PatchId>,
contents: Value<'a, T>
) -> Result<()>
&mut self,
key: &Key<PatchId>,
contents: Value<'a, T>
) -> Result<()>
fn output_conflict_marker(&mut self, s: &'a str) -> Result<()>
Provided Methods
fn begin_conflict(&mut self) -> Result<()>
fn conflict_next(&mut self) -> Result<()>
fn end_conflict(&mut self) -> Result<()>
Implementors
impl<'a, T: 'a + Transaction, W: Write> LineBuffer<'a, T> for W