pub struct MethodCallExpr {
pub receiver: Option<Box<Expr>>,
pub type_args: Option<TypeArguments>,
pub method: Ident,
pub paren_span: (Span, Span),
pub args: Vec<Expr>,
}Expand description
Method invocation expression.
Fields§
§receiver: Option<Box<Expr>>The method receiver (None for unqualified calls like method()).
type_args: Option<TypeArguments>Type arguments for the method call.
method: IdentThe method name.
paren_span: (Span, Span)Parenthesized arguments.
args: Vec<Expr>The arguments passed to the method.
Implementations§
Trait Implementations§
Source§impl Clone for MethodCallExpr
impl Clone for MethodCallExpr
Source§fn clone(&self) -> MethodCallExpr
fn clone(&self) -> MethodCallExpr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MethodCallExpr
impl Debug for MethodCallExpr
Source§impl Hash for MethodCallExpr
impl Hash for MethodCallExpr
Source§impl PartialEq for MethodCallExpr
impl PartialEq for MethodCallExpr
Source§fn eq(&self, other: &MethodCallExpr) -> bool
fn eq(&self, other: &MethodCallExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MethodCallExpr
impl StructuralPartialEq for MethodCallExpr
Auto Trait Implementations§
impl Freeze for MethodCallExpr
impl RefUnwindSafe for MethodCallExpr
impl Send for MethodCallExpr
impl Sync for MethodCallExpr
impl Unpin for MethodCallExpr
impl UnsafeUnpin for MethodCallExpr
impl UnwindSafe for MethodCallExpr
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