MCPcopy Index your code
hub / github.com/RustPython/RustPython / pyclass

Function pyclass

crates/derive-impl/src/lib.rs:43–49  ·  view source on GitHub ↗
(attr: PunctuatedNestedMeta, item: Item)

Source from the content-addressed store, hash-verified

41}
42
43pub 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
51pub fn pyexception(attr: PunctuatedNestedMeta, item: Item) -> TokenStream {
52 if matches!(item, syn::Item::Impl(_)) {

Callers

nothing calls this directly

Calls 3

result_to_tokensFunction · 0.85
impl_pyclass_implFunction · 0.85
impl_pyclassFunction · 0.85

Tested by

no test coverage detected