pub fn aggregate(self) -> impl Buf {
self.bufs
}
Can we turn impl Buf into a namable type (BufList<B>)? It is nice to use impl Buf and all, but today it makes it impossible to use it as a trait associated type.
Example:
trait Bufferer {
type Data: bytes::Buf;
// ...
}
impl<B> Bufferer for Collected<B> {
type Data = ?; // can't just `impl Buf` now
}