MCPcopy Create free account
hub / github.com/dtolnay/thiserror / from_field

Function from_field

impl/src/prop.rs:88–95  ·  view source on GitHub ↗
(fields: &'a [Field<'b>])

Source from the content-addressed store, hash-verified

86}
87
88fn from_field<'a, 'b>(fields: &'a [Field<'b>]) -> Option<&'a Field<'b>> {
89 for field in fields {
90 if field.attrs.from.is_some() {
91 return Some(field);
92 }
93 }
94 None
95}
96
97fn source_field<'a, 'b>(fields: &'a [Field<'b>]) -> Option<&'a Field<'b>> {
98 for field in fields {

Callers 1

from_fieldMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected