Skip to content

Commit 73ce5b5

Browse files
committed
inline get field for schema
1 parent 9c60f72 commit 73ce5b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

iceberg-rust-spec/src/spec/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ impl StructType {
292292
/// # Returns
293293
/// * `Some(&StructField)` if a field exists at that index
294294
/// * `None` if no field exists at that index
295+
#[inline]
295296
pub fn get(&self, index: usize) -> Option<&StructField> {
296297
self.lookup
297298
.get(&(index as i32))

0 commit comments

Comments
 (0)