Skip to content

Commit

Permalink
Implement write_all_vectored for VecDeque
Browse files Browse the repository at this point in the history
  • Loading branch information
a1phyr committed Feb 10, 2025
1 parent 80c0919 commit 313d7a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/std/src/io/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,11 @@ impl<A: Allocator> Write for VecDeque<u8, A> {
Ok(len)
}

fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
self.write_vectored(bufs)?;
Ok(())
}

#[inline]
fn is_write_vectored(&self) -> bool {
true
Expand Down

0 comments on commit 313d7a6

Please sign in to comment.