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

pub(super) enum FnSelfUseKind {
    Normal {
        self_arg: Ident,
        implicit_into_iter: bool,
    },
    FnOnceCall,
    Operator {
        self_arg: Ident,
    },
}

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

Trait Implementations

impl Clone for FnSelfUseKind[src]

impl Copy for FnSelfUseKind[src]

impl Debug for FnSelfUseKind[src]

impl Eq for FnSelfUseKind[src]

impl PartialEq<FnSelfUseKind> for FnSelfUseKind[src]

impl StructuralEq for FnSelfUseKind[src]

impl StructuralPartialEq for FnSelfUseKind[src]

Auto Trait Implementations

impl RefUnwindSafe for FnSelfUseKind

impl !Send for FnSelfUseKind

impl !Sync for FnSelfUseKind

impl Unpin for FnSelfUseKind

impl UnwindSafe for FnSelfUseKind

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]