pub struct TypeChecker { /* private fields */ }Implementations§
Source§impl TypeChecker
impl TypeChecker
pub fn new() -> Self
Sourcepub fn set_imported_modules(&mut self, modules: HashMap<String, ModuleInfo>)
pub fn set_imported_modules(&mut self, modules: HashMap<String, ModuleInfo>)
Set imported modules for type checking
Sourcepub fn get_instantiations(&self) -> Vec<(String, Vec<String>, GenericFunction)>
pub fn get_instantiations(&self) -> Vec<(String, Vec<String>, GenericFunction)>
Get all generic function instantiations for code generation
Sourcepub fn get_struct_instantiations(
&self,
) -> Vec<(String, Vec<String>, GenericStruct)>
pub fn get_struct_instantiations( &self, ) -> Vec<(String, Vec<String>, GenericStruct)>
Get all generic struct instantiations for code generation
Sourcepub fn in_unsafe_context(&self) -> bool
pub fn in_unsafe_context(&self) -> bool
Check if we’re currently in an unsafe context
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeChecker
impl RefUnwindSafe for TypeChecker
impl Send for TypeChecker
impl Sync for TypeChecker
impl Unpin for TypeChecker
impl UnsafeUnpin for TypeChecker
impl UnwindSafe for TypeChecker
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