MethodCall in rustc_ast::ast - Rust (original) (raw)
pub struct MethodCall {
pub seg: PathSegment,
pub receiver: P<Expr>,
pub args: ThinVec<P<Expr>>,
pub span: Span,
}
Expand description
A method call (e.g. x.foo::<Bar, Baz>(a, b, c)
).
The method name and its generic arguments, e.g. foo::<Bar, Baz>
.
The receiver, e.g. x
.
The arguments, e.g. a, b, c
.
The span of the function, without the dot and receiver e.g. foo::<Bar, Baz>(a, b, c)
.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes