Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: add binary_protocol::deserialize Bytes thrift entry point
Summary: Same as previous change to compact_protocol, but for binary_protocol This change updates binary_protocol::deserialize in terms of a new type DeserializeSource. DeserializeSource has conversions that it can take ownership of Bytes and items that are Into<Bytes>, whilst still being able to copy data from types that are AsRef<[u8]>. Reviewed By: markbt Differential Revision: D26687829 fbshipit-source-id: fca1d4f9389f07971d54186d229e487e5173caee
- Loading branch information