pub enum Fidelity {
Verbatim,
Transformed(Transform),
Synthetic(Transform),
}Expand description
Describes how a preprocessed line relates to the origin line it maps to, so a consumer can tell whether a column (and the line content itself) can be trusted to match the original file.
Variants§
Verbatim
The preprocessed line is byte-for-byte identical to the origin line. Its line and column map straight back to the original file.
Transformed(Transform)
The preprocessed line corresponds to a real origin line, but the
preprocessor changed its content (the named Transform), so the line
still maps but the column does not.
Synthetic(Transform)
The preprocessed line has no verbatim origin line: the preprocessor
generated it (the named Transform). The reported line points at the
directive that produced it, as a best-effort anchor.
Trait Implementations§
impl Copy for Fidelity
impl Eq for Fidelity
impl StructuralPartialEq for Fidelity
Auto Trait Implementations§
impl Freeze for Fidelity
impl RefUnwindSafe for Fidelity
impl Send for Fidelity
impl Sync for Fidelity
impl Unpin for Fidelity
impl UnsafeUnpin for Fidelity
impl UnwindSafe for Fidelity
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