pub enum LuaClosure {
Lua(GcRef<LuaLClosure>),
C(GcRef<LuaCClosure>),
LightC(LuaCFnPtr),
}Variants§
Trait Implementations§
Source§impl Clone for LuaClosure
impl Clone for LuaClosure
Source§fn clone(&self) -> LuaClosure
fn clone(&self) -> LuaClosure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LuaClosure
Source§impl Debug for LuaClosure
impl Debug for LuaClosure
Source§impl Trace for LuaClosure
LuaClosure — dispatch to Lua/C variants; LightC is a bare function-ptr
index with no payload.
impl Trace for LuaClosure
LuaClosure — dispatch to Lua/C variants; LightC is a bare function-ptr index with no payload.
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 !RefUnwindSafe for LuaClosure
impl !Send for LuaClosure
impl !Sync for LuaClosure
impl !UnwindSafe for LuaClosure
impl Freeze 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