pub struct SharedState<'a> {
pub state: &'a mut ProgramState,
pub lookup_table: DefinitionTable,
pub definition_table: DefinitionTable,
pub modules: &'a Modules,
pub source_map: &'a SourceMap,
pub file_id: FileId,
pub core_symbol_table: SymbolTableRef,
pub allow_unsafe: bool,
}Fields§
§state: &'a mut ProgramState§lookup_table: DefinitionTable§definition_table: DefinitionTable§modules: &'a Modules§source_map: &'a SourceMap§file_id: FileId§core_symbol_table: SymbolTableRef§allow_unsafe: boolImplementations§
pub fn get_definition_table( &'a self, path: &[String], ) -> Option<&'a DefinitionTable>
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