(attr: PunctuatedNestedMeta, item: Item)
| 41 | } |
| 42 | |
| 43 | pub fn pyclass(attr: PunctuatedNestedMeta, item: Item) -> TokenStream { |
| 44 | if matches!(item, syn::Item::Impl(_) | syn::Item::Trait(_)) { |
| 45 | result_to_tokens(pyclass::impl_pyclass_impl(attr, item)) |
| 46 | } else { |
| 47 | result_to_tokens(pyclass::impl_pyclass(attr, item)) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | pub fn pyexception(attr: PunctuatedNestedMeta, item: Item) -> TokenStream { |
| 52 | if matches!(item, syn::Item::Impl(_)) { |
nothing calls this directly
no test coverage detected