pub struct Log<'db> {
db: &'db dyn Db,
tasks: Vec<Task<'db>>,
events: Vec<Event>,
debug_tx: Sender<DebugEvent>,
}Fields§
§db: &'db dyn Db§tasks: Vec<Task<'db>>§events: Vec<Event>§debug_tx: Sender<DebugEvent>Implementations§
Source§impl<'db> Log<'db>
impl<'db> Log<'db>
fn new( db: &'db dyn Db, compiler_location: &'static Location<'static>, root: RootTaskDescription<'db>, debug_tx: Sender<DebugEvent>, ) -> Self
fn next_task_index(&self) -> TaskIndex
fn next_event_index(&self) -> EventIndex
fn push_task(&mut self, task: Task<'db>)
fn push_event(&mut self, event: Event)
fn dump(&self, span: Span<'db>)
fn export(&self) -> Log<'_>
fn export_task(&self, task: &Task<'db>, task_index: usize) -> Task
fn export_infers(&self) -> Vec<Infer>
fn export_nested_event_for_task( &self, task: TaskIndex, events_by_task: &[Vec<usize>], ) -> NestedEvent
fn export_child_nested_events( &self, task_events: &mut &[usize], events_by_task: &[Vec<usize>], ) -> Vec<NestedEvent>
Auto Trait Implementations§
impl<'db> Freeze for Log<'db>
impl<'db> !RefUnwindSafe for Log<'db>
impl<'db> !Send for Log<'db>
impl<'db> !Sync for Log<'db>
impl<'db> Unpin for Log<'db>
impl<'db> UnsafeUnpin for Log<'db>
impl<'db> !UnwindSafe for Log<'db>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more