interpret: refactor projection code to work on a common trait, and use that for visitors
This commit is contained in:
parent
a593de4fab
commit
a2bcafa500
44 changed files with 863 additions and 1210 deletions
|
@ -1189,7 +1189,7 @@ impl FieldsShape {
|
|||
}
|
||||
FieldsShape::Array { stride, count } => {
|
||||
let i = u64::try_from(i).unwrap();
|
||||
assert!(i < count);
|
||||
assert!(i < count, "tried to access field {} of array with {} fields", i, count);
|
||||
stride * i
|
||||
}
|
||||
FieldsShape::Arbitrary { ref offsets, .. } => offsets[FieldIdx::from_usize(i)],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue