Creates a new `PySharedRefCell` containing `value`. can be "const fn" since Rust 1.31.0
(value: T)
| 89 | /// Creates a new `PySharedRefCell` containing `value`. |
| 90 | // can be "const fn" since Rust 1.31.0 |
| 91 | pub fn new(value: T) -> PySharedRefCell<T> { |
| 92 | Self { |
| 93 | state: PySharedState::new(), |
| 94 | data: RefCell::new(value), |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /// A reference to `PySharedRefCell` owned by a Python object. |
nothing calls this directly
no test coverage detected