pub struct TermApplication {
pub func_ptr: TermPointer,
pub arg_ref: TermReference,
}Expand description
The application of some TermPointer to a function
to a TermReference argument.
Fields§
§func_ptr: TermPointer§arg_ref: TermReferenceImplementations§
Source§impl TermApplication
impl TermApplication
Sourcepub fn get_arg_type(&self, ctxt: &Context) -> TypeId
pub fn get_arg_type(&self, ctxt: &Context) -> TypeId
Gets the argument TypeId of this TermApplication in the given Context.
Sourcepub fn get_ret_type(&self, ctxt: &Context) -> TypeId
pub fn get_ret_type(&self, ctxt: &Context) -> TypeId
Gets the return TypeId of this TermApplication in the given Context.
Sourcepub fn get_func_type(&self) -> TypeId
pub fn get_func_type(&self) -> TypeId
Gets the function TypeId of this TermApplication.
Trait Implementations§
Source§impl Clone for TermApplication
impl Clone for TermApplication
Source§fn clone(&self) -> TermApplication
fn clone(&self) -> TermApplication
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 DisplayableWithState for TermApplication
impl DisplayableWithState for TermApplication
fn display(&self, state: &InterpreterState<'_>) -> String
Source§impl Hash for TermApplication
impl Hash for TermApplication
Source§impl PartialEq for TermApplication
impl PartialEq for TermApplication
impl Eq for TermApplication
impl StructuralPartialEq for TermApplication
Auto Trait Implementations§
impl Freeze for TermApplication
impl RefUnwindSafe for TermApplication
impl Send for TermApplication
impl Sync for TermApplication
impl Unpin for TermApplication
impl UnwindSafe for TermApplication
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