pub struct Compiler {
pub frames: Vec<CompilerFrame>,
pub path: Option<String>,
}Fields§
§frames: Vec<CompilerFrame>§path: Option<String>Implementations§
Source§impl Compiler
impl Compiler
pub fn new(path: Option<String>) -> Self
pub fn push_frame(&mut self, frame: CompilerFrame)
pub fn pop_frame(&mut self) -> Option<CompilerFrame>
pub fn frame(&self) -> Option<&CompilerFrame>
pub fn frame_mut(&mut self) -> Option<&mut CompilerFrame>
pub fn get_variable_location(&mut self, ident: &str) -> Option<Location>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compiler
impl !RefUnwindSafe for Compiler
impl !Send for Compiler
impl !Sync for Compiler
impl Unpin for Compiler
impl !UnwindSafe for Compiler
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