struct Shared<'p> {
program: &'p Program,
runtime: Runtime,
types: Types,
functions: Vec<FuncId>,
spans: Spans,
texts: HashMap<String, DataId>,
}Expand description
What every function being compiled consults besides the module.
Fields§
§program: &'p Program§runtime: Runtime§types: Types§functions: Vec<FuncId>The compiled Nifty functions, by function id.
spans: Spans§texts: HashMap<String, DataId>The bytes of each piece of text in the program, emitted once.
Implementations§
Auto Trait Implementations§
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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