struct PositionalNamedArg {
    ty: PositionalNamedArgType,
    cur_piece: usize,
    inner_span_to_replace: Option<InnerSpan>,
    replacement: Symbol,
    positional_named_arg_span: Span,
    has_formatting: bool,
}
Expand description

Contains information necessary to create a lint for a positional named argument

Fields

ty: PositionalNamedArgTypecur_piece: usize

The piece of the using this argument (multiple pieces can use the same argument)

inner_span_to_replace: Option<InnerSpan>

The InnerSpan for in the string to be replaced with the named argument This will be None when the position is implicit

replacement: Symbol

The name to use instead of the position

positional_named_arg_span: Span

The span for the positional named argument (so the lint can point a message to it)

has_formatting: bool

Implementations

Determines:

  1. span to be replaced with the name of the named argument and
  2. span to be underlined for error messages

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

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: 48 bytes