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§
source§impl Clone for ExplicitLateBound
impl Clone for ExplicitLateBound
source§fn clone(&self) -> ExplicitLateBound
fn clone(&self) -> ExplicitLateBound
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExplicitLateBound
impl Debug for ExplicitLateBound
source§impl PartialEq<ExplicitLateBound> for ExplicitLateBound
impl PartialEq<ExplicitLateBound> for ExplicitLateBound
source§fn eq(&self, other: &ExplicitLateBound) -> bool
fn eq(&self, other: &ExplicitLateBound) -> bool
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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