Struct valkyrie_ast::ClosureCallNode
source · pub struct ClosureCallNode {
pub monadic: bool,
pub base: ExpressionKind,
pub trailing: StatementBlock,
pub span: Range<u32>,
}Expand description
object.{ lambda(args), ... }
Fields§
§monadic: boolWeather it is a monadic call
base: ExpressionKindcalled
trailing: StatementBlocktrailing closure
span: Range<u32>The range of the node
Implementations§
source§impl ClosureCallNode
impl ClosureCallNode
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 ClosureCallNode
impl Clone for ClosureCallNode
source§fn clone(&self) -> ClosureCallNode
fn clone(&self) -> ClosureCallNode
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 ClosureCallNode
impl Debug for ClosureCallNode
source§impl From<ClosureCallNode> for ExpressionKind
impl From<ClosureCallNode> for ExpressionKind
source§fn from(o: ClosureCallNode) -> Self
fn from(o: ClosureCallNode) -> Self
Converts to this type from the input type.
source§impl Hash for ClosureCallNode
impl Hash for ClosureCallNode
source§impl PartialEq for ClosureCallNode
impl PartialEq for ClosureCallNode
source§fn eq(&self, other: &ClosureCallNode) -> bool
fn eq(&self, other: &ClosureCallNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ValkyrieNode for ClosureCallNode
impl ValkyrieNode for ClosureCallNode
impl Eq for ClosureCallNode
impl StructuralPartialEq for ClosureCallNode
Auto Trait Implementations§
impl RefUnwindSafe for ClosureCallNode
impl Send for ClosureCallNode
impl Sync for ClosureCallNode
impl Unpin for ClosureCallNode
impl UnwindSafe for ClosureCallNode
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