pub struct QueryContext<'q> {
pub interner: &'q Interner,
pub type_ctx: &'q TypeContext,
pub symbol_table: &'q SymbolTable,
}Expand description
A unified view of the core analysis context.
Bundles references to the three main analysis artifacts that downstream modules (compile, emit) commonly need together.
Fields§
§interner: &'q Interner§type_ctx: &'q TypeContext§symbol_table: &'q SymbolTableTrait Implementations§
Source§impl<'q> Clone for QueryContext<'q>
impl<'q> Clone for QueryContext<'q>
Source§fn clone(&self) -> QueryContext<'q>
fn clone(&self) -> QueryContext<'q>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'q> Copy for QueryContext<'q>
Auto Trait Implementations§
impl<'q> Freeze for QueryContext<'q>
impl<'q> !RefUnwindSafe for QueryContext<'q>
impl<'q> !Send for QueryContext<'q>
impl<'q> !Sync for QueryContext<'q>
impl<'q> Unpin for QueryContext<'q>
impl<'q> !UnwindSafe for QueryContext<'q>
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