Enum rustc_mir::borrow_check::diagnostics::FnSelfUseKind [−][src]
pub(super) enum FnSelfUseKind<'tcx> {
Normal {
self_arg: Ident,
implicit_into_iter: bool,
is_option_or_result: bool,
},
FnOnceCall,
Operator {
self_arg: Ident,
},
DerefCoercion {
deref_target: Span,
deref_target_ty: Ty<'tcx>,
},
}Variants
A normal method call of the form receiver.foo(a, b, c)
Show fields
A call to FnOnce::call_once, desugared from my_closure(a, b, c)
A call to an operator trait, desuraged from operator syntax (e.g. a << b)
Show fields
Fields of Operator
self_arg: IdentShow fields
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for FnSelfUseKind<'tcx>impl<'tcx> !Send for FnSelfUseKind<'tcx>impl<'tcx> !Sync for FnSelfUseKind<'tcx>impl<'tcx> Unpin for FnSelfUseKind<'tcx>impl<'tcx> !UnwindSafe for FnSelfUseKind<'tcx>Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 24 bytes