use crate::allocator::Global;
use crate::vec::types::EcoVec;
impl std::io::Write for EcoVec<u8, Global> {
#[inline]
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
self.extend_from_byte_slice(buf);
Ok(buf.len())
}
#[inline]
fn flush(&mut self) -> std::io::Result<()> {
Ok(())
}
}