pub struct History {
tag: BorTag,
created: (Span, Permission),
events: Vec<Event>,
}
Expand description
List of all events that affected a tag.
NOTE: not all of these events are relevant for a particular location,
the events should be filtered before the generation of diagnostics.
Available filtering methods include History::forget
and History::extract_relevant
.
Fields§
§tag: BorTag
§created: (Span, Permission)
§events: Vec<Event>
Implementations§
Source§impl History
impl History
Sourcefn extract_relevant(
&self,
error_offset: u64,
error_kind: TransitionError,
) -> Self
fn extract_relevant( &self, error_offset: u64, error_kind: TransitionError, ) -> Self
Reconstruct the history relevant to error_offset
by filtering
only events whose range contains the offset we are interested in.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for History
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnwindSafe for History
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes