Struct valkyrie_ast::ApplyCallNode
source · pub struct ApplyCallNode {
pub monadic: bool,
pub caller: ExpressionKind,
pub arguments: ArgumentsList,
pub body: Option<StatementBlock>,
pub span: Range<u32>,
}Expand description
f(a + b, c: d, ..e) { a + b }
f { a + b }
f(0, key: 1, ..list)
f(0, key: 1, ..list) { a + b }
this.m { a + b }
this.m(0, key: 1, ..list)
this.m(0, key: 1, ..list) { a + b }
Fields§
§monadic: boolWeather it is a monadic call
caller: ExpressionKindThe caller of argument
arguments: ArgumentsListThe raw string of the number.
body: Option<StatementBlock>The raw string of the number.
span: Range<u32>The range of the number.
Implementations§
source§impl ApplyCallNode
impl ApplyCallNode
sourcepub fn with_base(self, base: ExpressionKind) -> Self
pub fn with_base(self, base: ExpressionKind) -> Self
Replace placeholder with actual expression
Trait Implementations§
source§impl Clone for ApplyCallNode
impl Clone for ApplyCallNode
source§fn clone(&self) -> ApplyCallNode
fn clone(&self) -> ApplyCallNode
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 ApplyCallNode
impl Debug for ApplyCallNode
source§impl Default for ApplyCallNode
impl Default for ApplyCallNode
source§fn default() -> ApplyCallNode
fn default() -> ApplyCallNode
Returns the “default value” for a type. Read more
source§impl From<ApplyCallNode> for ExpressionKind
impl From<ApplyCallNode> for ExpressionKind
source§fn from(o: ApplyCallNode) -> Self
fn from(o: ApplyCallNode) -> Self
Converts to this type from the input type.
source§impl Hash for ApplyCallNode
impl Hash for ApplyCallNode
source§impl PartialEq for ApplyCallNode
impl PartialEq for ApplyCallNode
source§fn eq(&self, other: &ApplyCallNode) -> bool
fn eq(&self, other: &ApplyCallNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ValkyrieNode for ApplyCallNode
impl ValkyrieNode for ApplyCallNode
impl Eq for ApplyCallNode
impl StructuralPartialEq for ApplyCallNode
Auto Trait Implementations§
impl RefUnwindSafe for ApplyCallNode
impl Send for ApplyCallNode
impl Sync for ApplyCallNode
impl Unpin for ApplyCallNode
impl UnwindSafe for ApplyCallNode
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