pub struct TermApplicationResult {
pub term_app: TermApplication,
pub result_ref: TermReference,
}Expand description
The pairing of a TermApplication with
a TermReference that it evaluated to
when passed into an crate::interpreter_state::InterpreterState.
Fields§
§term_app: TermApplication§result_ref: TermReferenceImplementations§
Source§impl TermApplicationResult
impl TermApplicationResult
pub fn get_term_input_output(&self) -> TermInputOutput
Sourcepub fn get_arg_type(&self, ctxt: &Context) -> TypeId
pub fn get_arg_type(&self, ctxt: &Context) -> TypeId
Sourcepub fn get_func_type(&self) -> TypeId
pub fn get_func_type(&self) -> TypeId
Gets the TypeId of the function
Sourcepub fn get_ret_type(&self, ctxt: &Context) -> TypeId
pub fn get_ret_type(&self, ctxt: &Context) -> TypeId
Sourcepub fn get_arg_ref(&self) -> TermReference
pub fn get_arg_ref(&self) -> TermReference
Gets the argument TermReference in this TermApplicationResult.
Sourcepub fn get_ret_ref(&self) -> TermReference
pub fn get_ret_ref(&self) -> TermReference
Gets the return TermReference in this TermApplicationResult.
Sourcepub fn get_func_ptr(&self) -> TermPointer
pub fn get_func_ptr(&self) -> TermPointer
Gets the function TermPointer in this TermApplicationResult.
Trait Implementations§
Source§impl Clone for TermApplicationResult
impl Clone for TermApplicationResult
Source§fn clone(&self) -> TermApplicationResult
fn clone(&self) -> TermApplicationResult
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 Hash for TermApplicationResult
impl Hash for TermApplicationResult
Source§impl PartialEq for TermApplicationResult
impl PartialEq for TermApplicationResult
impl Eq for TermApplicationResult
impl StructuralPartialEq for TermApplicationResult
Auto Trait Implementations§
impl Freeze for TermApplicationResult
impl RefUnwindSafe for TermApplicationResult
impl Send for TermApplicationResult
impl Sync for TermApplicationResult
impl Unpin for TermApplicationResult
impl UnwindSafe for TermApplicationResult
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