pub struct NativeCont {
pub kind: ContKind,
pub func_slot: u32,
pub nresults: i32,
}Expand description
A continuation frame for pcall/xpcall: where its wrapped result lands and
how to wrap it. Lives on the call stack below the protected call (see
CallFrame).
Fields§
§kind: ContKindWhat kind of protection this continuation represents.
func_slot: u32the protecting native’s own stack slot — the wrapped status + values
(true, … / false, msg) land here
nresults: i32results the caller of pcall/xpcall expects (-1 = all)
Trait Implementations§
Source§impl Clone for NativeCont
impl Clone for NativeCont
Source§fn clone(&self) -> NativeCont
fn clone(&self) -> NativeCont
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 NativeCont
Auto Trait Implementations§
impl !RefUnwindSafe for NativeCont
impl !Send for NativeCont
impl !Sync for NativeCont
impl !UnwindSafe for NativeCont
impl Freeze for NativeCont
impl Unpin for NativeCont
impl UnsafeUnpin for NativeCont
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