sapling/eden/scm/lib/minibytes
Jun Wu e817eb52e9 minibytes: add Bytes::into_vec
Summary:
Make it possible to convert Bytes to `Vec<u8>` in a zero-copy way if possible.

This will make it possible to convert `minibytes::Bytes` to `bytes::Bytes` in a
zero-copy way if possible. Practically, it might be useful for some
revisionstore -> edenapi/types usecases.

Reviewed By: kulshrax

Differential Revision: D26237922

fbshipit-source-id: 28d620f303511099df77f79256d98abb1010f665
2021-02-05 13:57:49 -08:00
..
benches minibytes: port benchmark from tokio/bytes 2020-02-07 14:21:39 -08:00
src minibytes: add Bytes::into_vec 2021-02-05 13:57:49 -08:00
Cargo.toml minibytes: implement From<bytes::Bytes> 2021-02-03 20:22:32 -08:00