This file contains hidden or 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
//! The following is a simplified form of a possible PyO3 API which shows | |
//! cases where arbitrary self types would help resolve papercuts. | |
// ---------------------------------------------------------------------------------- | |
// | |
// Case 1 - PyO3's object hierarchy. We have a smart pointer type Py<T> and want to | |
// use it as a receiver for Python method calls. | |
// | |
// |