pub struct CallExpr(/* private fields */);Implementations§
Source§impl CallExpr
impl CallExpr
pub fn arg_list(&self) -> Option<ArgList>
Sourcepub fn callee_token(&self) -> Option<SyntaxToken<RLanguage>>
pub fn callee_token(&self) -> Option<SyntaxToken<RLanguage>>
The callee name token — the IDENT/STRING immediately preceding the
argument list, when the function being called is a simple name (foo(…),
`+`(…)) or a namespace-qualified name (pkg::fn(…), where the token
is the fn member). Returns None for a genuinely computed callee
((g())(…), x$f(…)).
Sourcepub fn callee_name(&self) -> Option<SmolStr>
pub fn callee_name(&self) -> Option<SmolStr>
The callee name (foo in foo(…), + in `+`(…)), unquoted,
when the callee is a simple name. None for a computed callee.
Sourcepub fn base(&self) -> Option<SyntaxElement<RLanguage>>
pub fn base(&self) -> Option<SyntaxElement<RLanguage>>
The callee element — everything before the argument list’s (. Generalizes
CallExpr::callee_token to the computed-callee case ((g())(…),
x$f(…)), where it returns the callee node instead of a name token.
Trait Implementations§
impl Eq for CallExpr
Source§impl HasArgList for CallExpr
impl HasArgList for CallExpr
impl StructuralPartialEq for CallExpr
Auto Trait Implementations§
impl !RefUnwindSafe for CallExpr
impl !Send for CallExpr
impl !Sync for CallExpr
impl !UnwindSafe for CallExpr
impl Freeze for CallExpr
impl Unpin for CallExpr
impl UnsafeUnpin for CallExpr
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