Enum rustc_trait_selection::infer::RegionckMode
source · [−]pub enum RegionckMode {
Solve,
Erase {
suppress_errors: bool,
},
}Expand description
How we should handle region solving.
This is used so that the region values inferred by HIR region solving are not exposed, and so that we can avoid doing work in HIR typeck that MIR typeck will also do.
Variants
Solve
The default mode: report region errors, don’t erase regions.
Erase
Fields
suppress_errors: boolA flag that is used to suppress region errors, when we are doing region checks that the NLL borrow checker will also do – it might be set to true.
Erase the results of region after solving.
Auto Trait Implementations
impl RefUnwindSafe for RegionckMode
impl Send for RegionckMode
impl Sync for RegionckMode
impl Unpin for RegionckMode
impl UnwindSafe for RegionckMode
Blanket Implementations
Mutably borrows from an owned value. Read more
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:
Solve: 0 bytesErase: 1 byte