Enum rustc_mir::borrow_check::ShallowOrDeep[][src]

enum ShallowOrDeep {
    Shallow(Option<ArtificialField>),
    Deep,
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Variants

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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."

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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

Trait Implementations

impl Copy for ShallowOrDeep
[src]

impl Clone for ShallowOrDeep
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ShallowOrDeep
[src]

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

This method tests for !=.

impl Eq for ShallowOrDeep
[src]

impl Debug for ShallowOrDeep
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ShallowOrDeep

impl Sync for ShallowOrDeep