Struct miri::borrow_tracker::tree_borrows::diagnostics::History
source · 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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