pub struct FnCallExpr {
pub namespace: Namespace,
pub name: ImmutableString,
pub hashes: FnCallHashes,
pub args: FnArgsVec<Expr>,
pub capture_parent_scope: bool,
pub op_token: Option<Token>,
}
Expand description
(internals) A function call.
Exported under the internals
feature only.
Fields§
§namespace: Namespace
Namespace of the function, if any.
name: ImmutableString
Function name.
hashes: FnCallHashes
Pre-calculated hashes.
args: FnArgsVec<Expr>
List of function call argument expressions.
capture_parent_scope: bool
Does this function call capture the parent scope?
op_token: Option<Token>
Is this function call a native operator?
Implementations§
Source§impl FnCallExpr
impl FnCallExpr
Sourcepub fn is_qualified(&self) -> bool
pub fn is_qualified(&self) -> bool
Does this function call contain a qualified namespace?
Not available under [no_module
]
Sourcepub fn is_operator_call(&self) -> bool
pub fn is_operator_call(&self) -> bool
Is this function call an operator expression?
Sourcepub fn into_fn_call_expr(self, pos: Position) -> Expr
pub fn into_fn_call_expr(self, pos: Position) -> Expr
Convert this into an Expr::FnCall
.
Sourcepub fn constant_args(&self) -> bool
pub fn constant_args(&self) -> bool
Are all arguments constant?
Trait Implementations§
Source§impl Clone for FnCallExpr
impl Clone for FnCallExpr
Source§fn clone(&self) -> FnCallExpr
fn clone(&self) -> FnCallExpr
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 FnCallExpr
impl Debug for FnCallExpr
Auto Trait Implementations§
impl Freeze for FnCallExpr
impl !RefUnwindSafe for FnCallExpr
impl !Send for FnCallExpr
impl !Sync for FnCallExpr
impl Unpin for FnCallExpr
impl !UnwindSafe for FnCallExpr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.