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, reader: &S, path: &Path, debug_info: bool, trace_parser: bool, trace_checker: bool, ) -> Result<Bytecode, ErrorList>
pub fn run_bytecode(&self, bc: &Bytecode) -> Option<PanicData>
pub fn run_source<S: SourceRead>( &self, trace_parser: bool, trace_checker: bool, reader: &S, path: &Path, panic_handler: Option<Rc<dyn Fn(String, String)>>, ) -> Result<(), ErrorList>
Auto Trait Implementations§
impl Freeze for Engine
impl !RefUnwindSafe for Engine
impl !Send for Engine
impl !Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin 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