pub struct SharedState<'a> {
pub state: &'a mut ProgramState,
pub lookup_table: SymbolTable,
pub definition_table: SymbolTable,
pub modules: &'a Modules,
pub source_map: &'a SourceMap,
pub file_id: FileId,
pub core_symbol_table: SymbolTableRef,
pub type_variables: SemanticContext,
}
Fields§
§state: &'a mut ProgramState
§lookup_table: SymbolTable
§definition_table: SymbolTable
§modules: &'a Modules
§source_map: &'a SourceMap
§file_id: FileId
§core_symbol_table: SymbolTableRef
§type_variables: SemanticContext
Implementations§
pub fn get_symbol_table(&'a self, path: &[String]) -> Option<&'a SymbolTable>
pub fn get_module(&'a self, path: &[String]) -> Option<&'a ModuleRef>
Auto Trait Implementations§
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