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

Method from_attr

crates/derive-impl/src/util.rs:265–268  ·  view source on GitHub ↗
(item_ident: Ident, attr: &Attribute)

Source from the content-addressed store, hash-verified

263 const ALLOWED_NAMES: &'static [&'static str];
264
265 fn from_attr(item_ident: Ident, attr: &Attribute) -> Result<Self> {
266 let (meta_ident, nested) = attr.ident_and_promoted_nested()?;
267 Self::from_nested(item_ident, meta_ident.clone(), nested.into_iter())
268 }
269
270 fn from_nested<I>(item_ident: Ident, meta_ident: Ident, nested: I) -> Result<Self>
271 where

Callers

nothing calls this directly

Implementers 3

pyclass.rscrates/derive-impl/src/pyclass.rs
util.rscrates/derive-impl/src/util.rs
pystructseq.rscrates/derive-impl/src/pystructseq.rs

Calls 3

cloneMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected