Enum rustc_borrowck::diagnostics::FnSelfUseKind [−][src]
pub(crate) 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)
Fields of Normal
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
)
Fields of Operator
self_arg: Ident
Fields of DerefCoercion
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 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: 24 bytes
Size for each variant:
Normal
: 15 bytesFnOnceCall
: 0 bytesOperator
: 15 bytesDerefCoercion
: 23 bytes