pub struct LuaCClosure {
pub func: LuaCFnPtr,
pub upvalues: RefCell<Vec<LuaValue>>,
}Fields§
§func: LuaCFnPtr§upvalues: RefCell<Vec<LuaValue>>Implementations§
Source§impl LuaCClosure
impl LuaCClosure
Sourcepub fn buffer_bytes(&self) -> usize
pub fn buffer_bytes(&self) -> usize
Bytes owned outside the GcBox header/object allocation.
Trait Implementations§
Source§impl Debug for LuaCClosure
impl Debug for LuaCClosure
Source§impl Trace for LuaCClosure
LuaCClosure — Rust-side C closure carrying captured upvalues.
impl Trace for LuaCClosure
LuaCClosure — Rust-side C closure carrying captured upvalues.
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Concrete Rust type name for diagnostic/testC telemetry
(
Heap::type_name_count). Collector behavior must not branch on
this. The default covers container blanket impls, which are never
GC-boxed directly; concrete runtime types override it with
std::any::type_name::<Self>().fn trace(&self, m: &mut Marker)
Auto Trait Implementations§
impl !Freeze for LuaCClosure
impl !RefUnwindSafe for LuaCClosure
impl !Send for LuaCClosure
impl !Sync for LuaCClosure
impl !UnwindSafe for LuaCClosure
impl Unpin for LuaCClosure
impl UnsafeUnpin for LuaCClosure
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