pub struct Compiler { /* private fields */ }Implementations§
Source§impl Compiler
impl Compiler
pub fn new() -> Self
pub fn set_imports_by_module(&mut self, map: HashMap<String, ModuleImports>)
pub fn set_entry_module(&mut self, module: impl Into<String>)
pub fn get_trait_impls(&self) -> &[(String, String)]
pub fn configure_stdlib(&mut self, config: &LustConfig)
pub fn set_option_coercions(&mut self, map: HashMap<String, HashSet<Span>>)
pub fn set_function_signatures( &mut self, signatures: HashMap<String, FunctionSignature>, )
pub fn take_function_signatures(&mut self) -> HashMap<String, FunctionSignature>
pub fn record_extern_value(&mut self, name: &str)
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 UnsafeUnpin 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