pub enum CallResult {
Exact {
fn_pos: u32,
args: Vec<StackValue>,
},
Partial {
captured: Vec<StackValue>,
remaining_arity: u32,
},
Over {
fn_pos: u32,
first_args: Vec<StackValue>,
rest_args: Vec<StackValue>,
},
}Expand description
Result of applying a call convention.
Variants§
Exact
Exact application: n == arity.
Partial
Under-application: returns a new PAP-like closure.
Over
Over-application: apply to arity args, then apply result to rest.
Trait Implementations§
Source§impl Clone for CallResult
impl Clone for CallResult
Source§fn clone(&self) -> CallResult
fn clone(&self) -> CallResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallResult
impl Debug for CallResult
Source§impl PartialEq for CallResult
impl PartialEq for CallResult
impl StructuralPartialEq for CallResult
Auto Trait Implementations§
impl Freeze for CallResult
impl RefUnwindSafe for CallResult
impl Send for CallResult
impl Sync for CallResult
impl Unpin for CallResult
impl UnsafeUnpin for CallResult
impl UnwindSafe for CallResult
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