pub struct Rendered {
pub text: String,
/* private fields */
}Expand description
Instrumented text plus the mapping back to the original, used to blame a site for a compile error in the rewritten file.
Fields§
§text: StringImplementations§
Source§impl Rendered
impl Rendered
Sourcepub fn inserted_by(&self, offset: usize) -> Option<u32>
pub fn inserted_by(&self, offset: usize) -> Option<u32>
Maps a byte offset in the instrumented text to the original. Offsets inside inserted
text map to the point of insertion.
The site whose probe text contains the byte at offset of the instrumented text.
pub fn to_original(&self, offset: usize) -> usize
Trait Implementations§
impl StructuralPartialEq for Rendered
Auto Trait Implementations§
impl Forget for Rendered
impl Freeze for Rendered
impl Move for Rendered
impl RefUnwindSafe for Rendered
impl Send for Rendered
impl Sync for Rendered
impl Unpin for Rendered
impl UnsafeUnpin for Rendered
impl UnwindSafe for Rendered
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