pub struct LuaScripting;Trait Implementations§
Source§impl ObjectMethods for LuaScripting
impl ObjectMethods for LuaScripting
Source§fn object_call(
var: &pxs_Var,
method: &str,
args: &mut pxs_VarList,
) -> Result<pxs_Var, Error>
fn object_call( var: &pxs_Var, method: &str, args: &mut pxs_VarList, ) -> Result<pxs_Var, Error>
Call a method on a object.
Source§fn call_method(method: &str, args: &mut pxs_VarList) -> Result<pxs_Var, Error>
fn call_method(method: &str, args: &mut pxs_VarList) -> Result<pxs_Var, Error>
Call a method and pass in args
Source§impl PixelScript for LuaScripting
impl PixelScript for LuaScripting
Source§fn add_module(source: Arc<pxs_Module>)
fn add_module(source: Arc<pxs_Module>)
Add a global module to the runtime.
Source§fn start_thread()
fn start_thread()
Allows the language to start a new thread. In this new thread all callbacks/objects/variables will be empty.
Source§fn stop_thread()
fn stop_thread()
Tells the language that we just finished the most recent started thread.
Source§fn clear_state(call_gc: bool)
fn clear_state(call_gc: bool)
Clear the current threads state. Optionally calls garbage collector.
Auto Trait Implementations§
impl Freeze for LuaScripting
impl RefUnwindSafe for LuaScripting
impl Send for LuaScripting
impl Sync for LuaScripting
impl Unpin for LuaScripting
impl UnwindSafe for LuaScripting
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more