ion-rust
ion-rust copied to clipboard
Implement the support for location metadata in `LazyValue`
Location metadata can be pulled up to LazyValue from the underlying buffer. For binary implementations this will be None and for text implementations it will come from TextBuffer::row() and TextBuffer::column().
List of changes required for this implementation:
- [ ] Modify
LazyValueto add a property for location metadata- [ ] For binary Ion it would always be None
- [ ] For text Ion get it from the buffer
- [ ] Would require having a
HasLocationtrait similar toHasSpanandHasRangefor different encodings (Ion 1.1 text, Ion 1.0 text, etc.) or adding an associated type to the Decoder
- [ ] Write unit tests on
LazyValuefor location metadata