pub struct SpliceMap {
pub segments: Vec<SpliceSegment>,
}Expand description
Maps instrumented byte offsets back to original byte offsets.
Each segment is a run of original text that the output copies unchanged.
Text that the instrumentation adds has no segment. The segments are in
increasing generated_start order.
Fields§
§segments: Vec<SpliceSegment>The copied runs, in output order.
Implementations§
Trait Implementations§
impl Eq for SpliceMap
impl StructuralPartialEq for SpliceMap
Auto Trait Implementations§
impl Freeze for SpliceMap
impl RefUnwindSafe for SpliceMap
impl Send for SpliceMap
impl Sync for SpliceMap
impl Unpin for SpliceMap
impl UnsafeUnpin for SpliceMap
impl UnwindSafe for SpliceMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more