pub struct SourceSnapshot { /* private fields */ }Expand description
A retained copy of the exact source used for an error report.
Keeping a snapshot alive retains its reporting-budget charge. It does not retain script objects or keep the interpreter alive.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SourceSnapshot
impl RefUnwindSafe for SourceSnapshot
impl Send for SourceSnapshot
impl Sync for SourceSnapshot
impl Unpin for SourceSnapshot
impl UnsafeUnpin for SourceSnapshot
impl UnwindSafe for SourceSnapshot
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