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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a, T> Captures<'a> for T where
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