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§
source§impl Clone for ElisionFnParameter
impl Clone for ElisionFnParameter
source§fn clone(&self) -> ElisionFnParameter
fn clone(&self) -> ElisionFnParameter
Returns a copy of the value. Read more
1.0.0 · source§fn 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§
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