Skip to content

The return type http_body_util::Collected::aggregate is unnamable #134

@MOZGIII

Description

@MOZGIII
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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions