pub struct WeakLua(/* private fields */);Expand description
A weak handle to a Lua instance. Mirrors mlua::WeakLua.
Holds a non-owning reference to the shared VM interior; upgrade it to a
strong Lua with WeakLua::try_upgrade / WeakLua::upgrade.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WeakLua
impl !Send for WeakLua
impl !Sync for WeakLua
impl !UnwindSafe for WeakLua
impl Forget for WeakLua
impl Freeze for WeakLua
impl Move for WeakLua
impl Unpin for WeakLua
impl UnsafeUnpin for WeakLuawhere
*const RcInner<LuaInner> is !null: UnsafeUnpin,
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