Struct Engine

Source
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

Source

pub fn run_llvm_file(&self, path: impl AsRef<Path>)

Source

pub fn run_file(&mut self, path: impl AsRef<Path>)

Source

pub fn set_test_llvm(&mut self, test: bool)

Source

pub fn add_test_llvm_file(&mut self, path: impl AsRef<Path>)

Source

pub fn register_external_function( &mut self, name: impl Into<String>, f: *mut c_void, )

Source

pub fn register_builtin_symbol_type( &mut self, name: impl Into<String>, ty: Type, )

Source

pub fn register_builtin_symbol( &mut self, name: impl Into<String>, value: LLVMValue, )

Source

pub fn register_visitor(&mut self, visitor: impl Visitor + 'static)

Source

pub fn register_preprocessor( &mut self, preprocessor: impl Preprocessor + 'static, )

Source

pub fn register_precluded_scripts(&mut self, scripts: &[&str])

Source

pub fn run_script(&mut self, script: impl AsRef<str>)

Trait Implementations§

Source§

impl Default for Engine

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.