We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<BufList as Buf>::has_remaining
1 parent 70ba87f commit bffa8c5Copy full SHA for bffa8c5
1 file changed
http-body-util/src/util.rs
@@ -27,6 +27,11 @@ impl<T: Buf> Buf for BufList<T> {
27
self.bufs.iter().map(|buf| buf.remaining()).sum()
28
}
29
30
+ #[inline]
31
+ fn has_remaining(&self) -> bool {
32
+ self.bufs.iter().any(|buf| buf.has_remaining())
33
+ }
34
+
35
#[inline]
36
fn chunk(&self) -> &[u8] {
37
self.bufs.front().map(Buf::chunk).unwrap_or_default()
0 commit comments