pub trait LineBuffer<'a, T: 'a + Transaction> {
// Required methods
fn output_line(
&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<()> { ... }
}
Expand description
A “line outputter” trait.