Enum move_ir_types::ast::FunctionCall_
source · pub enum FunctionCall_ {
Builtin(Builtin),
ModuleFunctionCall {
module: ModuleName,
name: FunctionName,
type_actuals: Vec<Type>,
},
}
Expand description
Enum for different function calls
Variants§
Builtin(Builtin)
functions defined in the host environment
ModuleFunctionCall
The call of a module defined procedure
Implementations§
source§impl FunctionCall_
impl FunctionCall_
sourcepub fn module_call(
module: ModuleName,
name: FunctionName,
type_actuals: Vec<Type>
) -> Self
pub fn module_call( module: ModuleName, name: FunctionName, type_actuals: Vec<Type> ) -> Self
Creates a FunctionCall::ModuleFunctionCall
variant
sourcepub fn builtin(bif: Builtin) -> FunctionCall
pub fn builtin(bif: Builtin) -> FunctionCall
Creates a FunctionCall::Builtin
variant with no location information
Trait Implementations§
source§impl Clone for FunctionCall_
impl Clone for FunctionCall_
source§fn clone(&self) -> FunctionCall_
fn clone(&self) -> FunctionCall_
Returns a copy 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 FunctionCall_
impl Debug for FunctionCall_
source§impl Display for FunctionCall_
impl Display for FunctionCall_
source§impl PartialEq<FunctionCall_> for FunctionCall_
impl PartialEq<FunctionCall_> for FunctionCall_
source§fn eq(&self, other: &FunctionCall_) -> bool
fn eq(&self, other: &FunctionCall_) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.