Structs§
- Lossless
File - A “lossless” representation of an entire Rust file, preserving all
comments/whitespace (via
InterstitialSegment) plus each recognized item’s exact original text inLosslessItem. - Lossless
Item - An item with its exact text snippet.
We do not store a separate range because
ConsolidatedItemalready hastext_range()(e.g. for aCrateInterfaceItem, it isci.text_range()).
Enums§
- Segment
Kind - Distinguishes an Item vs an Interstitial in the
layout.