pub fn fill(&mut self, buf: &[u8]) -> usize {
        use std::io::Write;

        // FIXME: Use std::slice::bytes::copy_memory when it is stabilized.
        let amount = self.get_write_buf().write(buf).unwrap();
        self.position += amount;

        amount
    }
/// Write the data in the passed buffer onto the AppendBuf.
///
/// This is an alternative to using the implementation of `std::io::Write`
/// which does not unnecessarily use `Result`.
Write the data in the passed buffer onto the AppendBuf.
This is an alternative to using the implementation of `std::io::Write`
which does not unnecessarily use `Result`.
Write the data in the passed buffer onto the AppendBuf . This is an alternative to using the implementation of ` std :: io :: Write ` which does not unnecessarily use ` Result ` .
pub fn fill(&mut self, buf: &[u8]) -> usize {
        use std::io::Write;
        // FIXME: Use std::slice::bytes::copy_memory when it is stabilized.
        let amount = self.get_write_buf().write(buf).unwrap();
        self.position += amount;
        amount
    }
pub fn fill ( & mut self , buf : & [ u8 ] ) -> usize { use std :: io :: Write ; // FIXME: Use std::slice::bytes::copy_memory when it is stabilized. let amount = self . get_write_buf ( ) . write ( buf ) . unwrap ( ) ; self . position += amount ; amount }
Write the data in the passed buffer onto the AppendBuf.
Write the data in the passed buffer onto the AppendBuf .
&mut self
buf
&[u8]