Enum rustc_typeck::astconv::ExplicitLateBound
source · 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
Yes
No
Trait Implementations
sourceimpl Clone for ExplicitLateBound
impl Clone for ExplicitLateBound
sourcefn clone(&self) -> ExplicitLateBound
fn clone(&self) -> ExplicitLateBound
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for ExplicitLateBound
impl Debug for ExplicitLateBound
sourceimpl PartialEq<ExplicitLateBound> for ExplicitLateBound
impl PartialEq<ExplicitLateBound> for ExplicitLateBound
sourcefn eq(&self, other: &ExplicitLateBound) -> bool
fn eq(&self, other: &ExplicitLateBound) -> bool
impl Copy for ExplicitLateBound
impl StructuralPartialEq for ExplicitLateBound
Auto Trait Implementations
impl RefUnwindSafe for ExplicitLateBound
impl Send for ExplicitLateBound
impl Sync for ExplicitLateBound
impl Unpin for ExplicitLateBound
impl UnwindSafe for ExplicitLateBound
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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:
Yes
: 0 bytesNo
: 0 bytes