Struct weave::NewWeave
[−]
[src]
pub struct NewWeave<'n> { /* fields omitted */ }
A builder for a new weave file. The data should be written as a writer. Closing the weaver will finish up the write and move the new file into place. If the weaver is just dropped, the file will not be moved into place.
Methods
impl<'n> NewWeave<'n>
[src]
fn new<'a, 'b, I>(nc: &NamingConvention, tags: I) -> Result<NewWeave> where
I: Iterator<Item = (&'a str, &'b str)>,
I: Iterator<Item = (&'a str, &'b str)>,
fn close(self) -> Result<()>
Trait Implementations
impl<'n> Write for NewWeave<'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