Struct weave::DeltaWriter
[−]
[src]
pub struct DeltaWriter<'n> { /* fields omitted */ }
A DeltaWriter is used to write a new delta. Data should be written to the writer, and then the
close
method called to update the weave file with the new delta.
Methods
impl<'n> DeltaWriter<'n>
[src]
fn new<'a, 'b, I>(
nc: &NamingConvention,
tags: I,
base: usize
) -> Result<DeltaWriter> where
I: Iterator<Item = (&'a str, &'b str)>,
nc: &NamingConvention,
tags: I,
base: usize
) -> Result<DeltaWriter> where
I: Iterator<Item = (&'a str, &'b str)>,
Construct a writer for a new delta. The naming convention and the tags set where the names
will be written, and what tags will be associated with the convention. The base
is the
existing delta that the change should be based on.
fn close(self) -> Result<()>
Trait Implementations
impl<'n> Write for DeltaWriter<'n>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self
1.0.0
Creates a "by reference" adaptor for this instance of Write
. Read more