Enum rustc_borrowck::diagnostics::explain_borrow::BorrowExplanation[−][src]

pub(crate) 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>)

Tuple Fields

1: Span

UsedLaterInLoop(LaterUseKind, Span, Option<Span>)

Tuple Fields

1: Span

UsedLaterWhenDropped

Fields

drop_loc: Location
dropped_local: Local
should_note_order: bool

MustBeValidFor

Fields

from_closure: bool
span: Span
region_name: RegionName
opt_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 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: 128 bytes

Size for each variant:

  • UsedLater: 23 bytes
  • UsedLaterInLoop: 23 bytes
  • UsedLaterWhenDropped: 23 bytes
  • MustBeValidFor: 127 bytes
  • Unexplained: 0 bytes