Struct valkyrie_ast::DotCallNode
source · pub struct DotCallNode {
pub monadic: bool,
pub base: ExpressionKind,
pub term: DotCallTerm,
pub span: Range<u32>,
}Expand description
a.method.1
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
base: ExpressionKindThe caller of argument
term: DotCallTermThe call arguments
span: Range<u32>The range of the number.
Implementations§
source§impl DotCallNode
impl DotCallNode
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 DotCallNode
impl Clone for DotCallNode
source§fn clone(&self) -> DotCallNode
fn clone(&self) -> DotCallNode
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 DotCallNode
impl Debug for DotCallNode
source§impl From<DotCallNode> for ExpressionKind
impl From<DotCallNode> for ExpressionKind
source§fn from(o: DotCallNode) -> Self
fn from(o: DotCallNode) -> Self
Converts to this type from the input type.
source§impl Hash for DotCallNode
impl Hash for DotCallNode
source§impl PartialEq for DotCallNode
impl PartialEq for DotCallNode
source§fn eq(&self, other: &DotCallNode) -> bool
fn eq(&self, other: &DotCallNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ValkyrieNode for DotCallNode
impl ValkyrieNode for DotCallNode
impl Eq for DotCallNode
impl StructuralPartialEq for DotCallNode
Auto Trait Implementations§
impl RefUnwindSafe for DotCallNode
impl Send for DotCallNode
impl Sync for DotCallNode
impl Unpin for DotCallNode
impl UnwindSafe for DotCallNode
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