( )⚙ D11395 rust: Move PyBytesWithData out of copy-tracing code

This is an archive of the discontinued Mercurial Phabricator instance.

rust: Move PyBytesWithData out of copy-tracing code
ClosedPublic

Authored by SimonSapin on Sep 10 2021, 11:11 AM.

Details

Summary

So we can use it in other places to.

Replace its .data() method with the Deref<Target = [u8]> trait,
allowing this type to be used in generic contexts.
Rename the type accordingly.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage