pub struct FunctionCallNode {
pub prefix: String,
pub local_name: String,
pub args: Vec<AstNodeId>,
pub span: SourceSpan,
pub function_handle: Option<FunctionHandle>,
}Expand description
Function call expression (prefix:name(args...)).
Fields§
§prefix: StringNamespace prefix (empty string if none, defaults to fn namespace).
local_name: StringFunction local name.
args: Vec<AstNodeId>Argument expressions.
span: SourceSpanSource location.
function_handle: Option<FunctionHandle>Resolved function handle (set during binding phase).
This replaces the previous function_id field. The handle works for
both built-in and custom functions.
Implementations§
Trait Implementations§
Source§impl Clone for FunctionCallNode
impl Clone for FunctionCallNode
Source§fn clone(&self) -> FunctionCallNode
fn clone(&self) -> FunctionCallNode
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 moreAuto Trait Implementations§
impl Freeze for FunctionCallNode
impl RefUnwindSafe for FunctionCallNode
impl Send for FunctionCallNode
impl Sync for FunctionCallNode
impl Unpin for FunctionCallNode
impl UnsafeUnpin for FunctionCallNode
impl UnwindSafe for FunctionCallNode
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