Enum rustc_borrowck::AccessDepth[][src]

pub(crate) enum AccessDepth {
    Shallow(Option<ArtificialField>),
    Deep,
    Drop,
}

Variants

Shallow(Option<ArtificialField>)

From the RFC: “A shallow access means that the immediate fields reached at P are accessed, but references or pointers found within are not dereferenced. Right now, the only access that is shallow is an assignment like x = ...;, which would be a shallow write of x.”

Tuple Fields of Shallow

0: Option<ArtificialField>
Deep

From the RFC: “A deep access means that all data reachable through the given place may be invalidated or accesses by this action.”

Drop

Access is Deep only when there is a Drop implementation that can reach the data behind the reference.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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: 1 byte

Size for each variant: