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

Method named_fields

crates/derive-impl/src/pystructseq.rs:36–41  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

34
35impl FieldInfo {
36 fn named_fields(&self) -> Vec<&ParsedField> {
37 self.fields
38 .iter()
39 .filter(|f| f.kind == FieldKind::Named)
40 .collect()
41 }
42
43 fn visible_fields(&self) -> Vec<&ParsedField> {
44 self.fields

Callers 1

Calls 3

collectMethod · 0.80
filterMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected