pub struct LuaClosure {
pub proto: Gc<Proto>,
/* private fields */
}Expand description
A Lua closure: a Proto paired with its captured upvalues.
Fields§
§proto: Gc<Proto>The compiled function body this closure binds.
Implementations§
Trait Implementations§
impl Send for LuaClosure
impl Sync for LuaClosure
Auto Trait Implementations§
impl !Freeze for LuaClosure
impl !RefUnwindSafe for LuaClosure
impl !UnwindSafe for LuaClosure
impl Unpin for LuaClosure
impl UnsafeUnpin for LuaClosure
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