Enum rustc_mir::borrow_check::diagnostics::explain_borrow::BorrowExplanation[−][src]

pub(in borrow_check) enum BorrowExplanation {
    UsedLater(LaterUseKind, Span, Option<Span>),
    UsedLaterInLoop(LaterUseKind, Span, Option<Span>),
    UsedLaterWhenDropped {
        drop_loc: Location,
        dropped_local: Local,
        should_note_order: bool,
    },
    MustBeValidFor {
        category: ConstraintCategory,
        from_closure: bool,
        span: Span,
        region_name: RegionName,
        opt_place_desc: Option<String>,
    },
    Unexplained,
}

Variants

UsedLater(LaterUseKind, Span, Option<Span>)
UsedLaterInLoop(LaterUseKind, Span, Option<Span>)
UsedLaterWhenDropped
Show fields

Fields of UsedLaterWhenDropped

drop_loc: Locationdropped_local: Localshould_note_order: bool
MustBeValidFor
Show fields

Fields of MustBeValidFor

category: ConstraintCategoryfrom_closure: boolspan: Spanregion_name: RegionNameopt_place_desc: Option<String>
Unexplained

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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: 128 bytes