MCPcopy Create free account
hub / github.com/apache/arrow-rs / find

Method find

arrow-schema/src/fields.rs:82–84  ·  view source on GitHub ↗

Searches for a field by name, returning it along with its index if found

(&self, name: &str)

Source from the content-addressed store, hash-verified

80
81 /// Searches for a field by name, returning it along with its index if found
82 pub fn find(&self, name: &str) -> Option<(usize, &FieldRef)> {
83 self.0.iter().enumerate().find(|(_, b)| b.name() == name)
84 }
85
86 /// Check to see if `self` is a superset of `other`
87 ///

Calls 2

iterMethod · 0.45
nameMethod · 0.45