Struct CompileEnvironment
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§
§impl CompileEnvironment
impl CompileEnvironment
pub fn new() -> CompileEnvironment
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§
§impl Default for CompileEnvironment
impl Default for CompileEnvironment
§fn default() -> CompileEnvironment
fn default() -> CompileEnvironment
Returns the “default value” for a type. Read more
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