pub struct Engine { /* private fields */ }
Implementations§
source§impl Engine
impl Engine
pub fn new() -> Engine
pub fn with_user_data(data: usize) -> Engine
pub fn set_std_io( &self, std_in: Option<Box<dyn Read + Sync + Send>>, std_out: Option<Box<dyn Write + Sync + Send>>, std_err: Option<Box<dyn Write + Sync + Send>> )
pub fn register_extension(&mut self, name: &'static str, proto: Rc<dyn Ffi>)
pub fn compile<S: SourceRead>( &self, trace_parser: bool, trace_checker: bool, reader: &S, path: &Path ) -> Result<(Bytecode, FileSet), ErrorList>
pub fn run_bytecode(&self, bc: &Bytecode)
pub fn run_source<S: SourceRead>( &self, trace_parser: bool, trace_checker: bool, reader: &S, path: &Path ) -> Result<(), ErrorList>
Auto Trait Implementations§
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