Struct rustc_hir_typeck::method::suggest::MethodCallComponents
source · pub struct MethodCallComponents<'tcx> {
pub receiver: &'tcx Expr<'tcx>,
pub args: &'tcx [Expr<'tcx>],
pub full_expr: &'tcx Expr<'tcx>,
}
Expand description
After identifying that full_expr
is a method call, we use this type to keep the expression’s
components readily available to us to point at the right place in diagnostics.
Fields§
§receiver: &'tcx Expr<'tcx>
§args: &'tcx [Expr<'tcx>]
§full_expr: &'tcx Expr<'tcx>
Trait Implementations§
source§impl<'tcx> Clone for MethodCallComponents<'tcx>
impl<'tcx> Clone for MethodCallComponents<'tcx>
source§fn clone(&self) -> MethodCallComponents<'tcx>
fn clone(&self) -> MethodCallComponents<'tcx>
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<'tcx> Debug for MethodCallComponents<'tcx>
impl<'tcx> Debug for MethodCallComponents<'tcx>
impl<'tcx> Copy for MethodCallComponents<'tcx>
Auto Trait Implementations§
impl<'tcx> RefUnwindSafe for MethodCallComponents<'tcx>
impl<'tcx> !Send for MethodCallComponents<'tcx>
impl<'tcx> !Sync for MethodCallComponents<'tcx>
impl<'tcx> Unpin for MethodCallComponents<'tcx>
impl<'tcx> UnwindSafe for MethodCallComponents<'tcx>
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
Layout§
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: 32 bytes