Struct rustc_resolve::late::diagnostics::ElisionFnParameter
source · [−]pub(super) struct ElisionFnParameter {
pub index: usize,
pub ident: Option<Ident>,
pub lifetime_count: usize,
pub span: Span,
}
Expand description
Description of the lifetimes appearing in a function parameter. This is used to provide a literal explanation to the elision failure.
Fields
index: usize
The index of the argument in the original definition.
ident: Option<Ident>
The name of the argument if it’s a simple ident.
lifetime_count: usize
The number of lifetimes in the parameter.
span: Span
The span of the parameter.
Trait Implementations
sourceimpl Clone for ElisionFnParameter
impl Clone for ElisionFnParameter
sourcefn clone(&self) -> ElisionFnParameter
fn clone(&self) -> ElisionFnParameter
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 moreAuto Trait Implementations
impl RefUnwindSafe for ElisionFnParameter
impl !Send for ElisionFnParameter
impl !Sync for ElisionFnParameter
impl Unpin for ElisionFnParameter
impl UnwindSafe for ElisionFnParameter
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
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: 40 bytes