pub struct Lua { /* private fields */ }
Implementations§
Source§impl<'a> Lua
impl<'a> Lua
pub fn evaluate(&mut self, source: &str) -> FunctionObject
pub fn run(&mut self, source: &str) -> Result<Value, Vec<ErrorTuple>>
pub fn execute( &mut self, object: Rc<FunctionObject>, ) -> Result<Value, SiltError>
Sourcepub fn register_native_function(
&mut self,
name: &str,
function: fn(&mut Self, Vec<Value>) -> Value,
)
pub fn register_native_function( &mut self, name: &str, function: fn(&mut Self, Vec<Value>) -> Value, )
Register a native function on the global table
Sourcepub fn load_standard_library(&mut self)
pub fn load_standard_library(&mut self)
Load standard library functions
pub fn print_stack(&self)
Auto Trait Implementations§
impl Freeze for Lua
impl !RefUnwindSafe for Lua
impl !Send for Lua
impl !Sync for Lua
impl Unpin for Lua
impl !UnwindSafe for Lua
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