dd6498142f
3014: feat: add #[pyo3(get, set)] for Cell r=davidhewitt a=AntoineRR This fixes #2659. The types for which `#[pyo3(get, set)]` should now work are `Cell`, `Arc` and `Box`. There is one issue regarding `Box`, the implementation of `FromPyObject` conflicts with another one. I could not find what the issue was, especially since the other implementations for `Arc` and `Cell` work as expected. The related code and test has been commented out for now. Maybe someone could help me fix this issue if I don't figure it out myself? There is also the possibility to remove the implementation for `Box` of course. Co-authored-by: Antoine Romero-Romero <ant.romero2@orange.fr> |
||
---|---|---|
.. | ||
not_msrv | ||
ui | ||
common.rs | ||
test_anyhow.rs | ||
test_append_to_inittab.rs | ||
test_arithmetics.rs | ||
test_buffer.rs | ||
test_buffer_protocol.rs | ||
test_bytes.rs | ||
test_class_attributes.rs | ||
test_class_basics.rs | ||
test_class_conversion.rs | ||
test_class_new.rs | ||
test_compile_error.rs | ||
test_datetime.rs | ||
test_default_impls.rs | ||
test_dict_iter.rs | ||
test_enum.rs | ||
test_exceptions.rs | ||
test_field_cfg.rs | ||
test_frompyobject.rs | ||
test_gc.rs | ||
test_getter_setter.rs | ||
test_inheritance.rs | ||
test_macros.rs | ||
test_mapping.rs | ||
test_methods.rs | ||
test_module.rs | ||
test_multiple_pymethods.rs | ||
test_not_msrv.rs | ||
test_pep_587.rs | ||
test_proto_methods.rs | ||
test_pyfunction.rs | ||
test_pyself.rs | ||
test_sequence.rs | ||
test_serde.rs | ||
test_string.rs | ||
test_super.rs | ||
test_text_signature.rs | ||
test_unsendable_dict.rs | ||
test_variable_arguments.rs | ||
test_variable_arguments_deprecated.rs | ||
test_various.rs | ||
test_wrap_pyfunction_deduction.rs |