Struct bones_scripting::lua::LuaSingletons
source · pub struct LuaSingletons { /* private fields */ }
Expand description
Struct for accessing and initializing lua singletons.
This is stored in a lua global and accessed conveniently through our CtxExt
trait
so that we can easily initialize lua tables and callbacks throughout our lua bindings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaSingletons
impl !RefUnwindSafe for LuaSingletons
impl !Send for LuaSingletons
impl !Sync for LuaSingletons
impl Unpin for LuaSingletons
impl !UnwindSafe for LuaSingletons
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
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &World) -> T
fn from_world(_world: &World) -> T
Creates
Self
using data from the given [World
].