[−][src]Enum rustc_mir::borrow_check::diagnostics::FnSelfUseKind

pub(in borrow_check) enum FnSelfUseKind<'tcx> {
    Normal {
        self_arg: Ident,
        implicit_into_iter: bool,
    },
    FnOnceCall,
    Operator {
        self_arg: Ident,
    },
    DerefCoercion {
        deref_target: Span,
        deref_target_ty: Ty<'tcx>,
    },
}

Variants

Normal

A normal method call of the form receiver.foo(a, b, c)

Fields of Normal

self_arg: Identimplicit_into_iter: bool
FnOnceCall

A call to FnOnce::call_once, desugared from my_closure(a, b, c)

Operator

A call to an operator trait, desuraged from operator syntax (e.g. a << b)

Fields of Operator

self_arg: Ident
DerefCoercion

Fields of DerefCoercion

deref_target: Span

The Span of the Target associated type in the Deref impl we are using.

deref_target_ty: Ty<'tcx>

The type T::Deref we are dereferencing to

Trait Implementations

impl<'tcx> Clone for FnSelfUseKind<'tcx>[src]

impl<'tcx> Copy for FnSelfUseKind<'tcx>[src]

impl<'tcx> Debug for FnSelfUseKind<'tcx>[src]

impl<'tcx> Eq for FnSelfUseKind<'tcx>[src]

impl<'tcx> PartialEq<FnSelfUseKind<'tcx>> for FnSelfUseKind<'tcx>[src]

impl<'tcx> StructuralEq for FnSelfUseKind<'tcx>[src]

impl<'tcx> StructuralPartialEq for FnSelfUseKind<'tcx>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]