Skip to content
Snippets Groups Projects
  • Douman's avatar
    b6cb346a
    Remove IntoBuf/FromBuf (#288) · b6cb346a
    Douman authored
    As consequence Buf::collect is removed as well, which is replaced with `Buf::into_bytes`. The advantage of `Buf::into_bytes` is that it can be optimized in cases where converting a `T: Buf` into a `Bytes` instance is efficient.
    b6cb346a
    History
    Remove IntoBuf/FromBuf (#288)
    Douman authored
    As consequence Buf::collect is removed as well, which is replaced with `Buf::into_bytes`. The advantage of `Buf::into_bytes` is that it can be optimized in cases where converting a `T: Buf` into a `Bytes` instance is efficient.