Enum rustc_typeck::astconv::ExplicitLateBound [−][src]
pub enum ExplicitLateBound {
Yes,
No,
}Expand description
New-typed boolean indicating whether explicit late-bound lifetimes are present in a set of generic arguments.
For example if we have some method fn f<'a>(&'a self) implemented
for some type T, although f is generic in the lifetime 'a, 'a
is late-bound so should not be provided explicitly. Thus, if f is
instantiated with some generic arguments providing 'a explicitly,
we taint those arguments with ExplicitLateBound::Yes so that we
can provide an appropriate diagnostic later.
Variants
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExplicitLateBoundimpl Send for ExplicitLateBoundimpl Sync for ExplicitLateBoundimpl Unpin for ExplicitLateBoundimpl UnwindSafe for ExplicitLateBoundBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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