pub struct CompileEnvironment {
use_line: bool,
line: u32,
specials: Option<Specials>,
global_map: HashMap<Interned, usize>,
gensym_idx: usize,
namespace: Namespace,
}
Fields§
§use_line: bool
§line: u32
§specials: Option<Specials>
§global_map: HashMap<Interned, usize>
§gensym_idx: usize
§namespace: Namespace
Implementations§
Source§impl CompileEnvironment
impl CompileEnvironment
pub fn new() -> Self
pub fn next_gensym(&mut self) -> usize
pub fn line(&self) -> u32
pub fn set_namespace(&mut self, namespace: Namespace)
pub fn add_ns_import(&mut self, ns: String, alias: Option<String>)
pub fn get_namespace(&self) -> &Namespace
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompileEnvironment
impl RefUnwindSafe for CompileEnvironment
impl Send for CompileEnvironment
impl Sync for CompileEnvironment
impl Unpin for CompileEnvironment
impl UnwindSafe for CompileEnvironment
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