-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Rust initialisation of Python-allocated bytes (PyO3#1074)
* Added Rust initialisation of Python-allocated bytes * Added unsafe PyBytes::new_with_unit constructor * Added examples to PyBytes::new_with and PyBytes::new_with_uninit (now with MaybeUninit<u8>) * Fixed doc test imports for PyBytes::new_with and PyBytes::new_with_uninit * Fixed clippy error in PyBytes::new_with_uninit test * Added PyByteArray::new_with and Removed PyBytes::new_with_uninit * Small doc fixes + FnOnce init closure for PyBytes::new_with and PyByteArray::new_with Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com> * Fixed where clause formatting in PyBytes::new_with and PyByteArray::new_with Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
- Loading branch information
1 parent
8022420
commit a877300
Showing
3 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters