Enum rustc_resolve::late::lifetimes::Elide [−][src]
enum Elide {
FreshLateAnon(u32, Cell<u32>),
Exact(Region),
Error(Vec<ElisionFailureInfo>),
Forbid,
}
Variants
Use a fresh anonymous late-bound lifetime each time, by incrementing the counter to generate sequential indices. All anonymous lifetimes must start after named bound vars.
Exact(Region)
Always use this one lifetime.
Tuple Fields of Exact
0: Region
Error(Vec<ElisionFailureInfo>)
Less or more than one lifetime were found, error on unspecified.
Tuple Fields of Error
Forbid lifetime elision inside of a larger scope where it would be permitted. For example, in let position impl trait.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Elide
impl UnwindSafe for Elide
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: 32 bytes
Size for each variant:
FreshLateAnon
: 8 bytesExact
: 20 bytesError
: 28 bytesForbid
: 0 bytes