pub struct Engine {
pub test_llvm: bool,
pub test_llvm_files: Vec<PathBuf>,
/* private fields */
}
Fields§
§test_llvm: bool
§test_llvm_files: Vec<PathBuf>
Implementations§
Source§impl Engine
impl Engine
pub fn run_llvm_file(&self, path: impl AsRef<Path>)
pub fn run_file(&mut self, path: impl AsRef<Path>)
pub fn set_test_llvm(&mut self, test: bool)
pub fn add_test_llvm_file(&mut self, path: impl AsRef<Path>)
pub fn register_external_function( &mut self, name: impl Into<String>, f: *mut c_void, )
pub fn register_builtin_symbol_type( &mut self, name: impl Into<String>, ty: Type, )
pub fn register_builtin_symbol( &mut self, name: impl Into<String>, value: LLVMValue, )
pub fn register_visitor(&mut self, visitor: impl Visitor + 'static)
pub fn register_preprocessor( &mut self, preprocessor: impl Preprocessor + 'static, )
pub fn register_precluded_scripts(&mut self, scripts: &[&str])
pub fn run_script(&mut self, script: impl AsRef<str>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Engine
impl !RefUnwindSafe for Engine
impl !Send for Engine
impl !Sync for Engine
impl Unpin for Engine
impl !UnwindSafe for Engine
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