Struct clippy_utils::higher::FormatArgsExpn[−][src]

pub struct FormatArgsExpn<'tcx> {
    pub format_string_span: Span,
    pub value_args: Vec<&'tcx Expr<'tcx>>,
    pub format_string_parts: &'tcx [Expr<'tcx>],
    pub format_string_symbols: Vec<Symbol>,
    pub args: &'tcx [Expr<'tcx>],
    pub fmt_expr: Option<&'tcx Expr<'tcx>>,
}
Expand description

A parsed format_args! expansion

Fields

format_string_span: Span

Span of the first argument, the format string

value_args: Vec<&'tcx Expr<'tcx>>

Values passed after the format string

format_string_parts: &'tcx [Expr<'tcx>]

String literal expressions which represent the format string split by “{}”

format_string_symbols: Vec<Symbol>

Symbols corresponding to Self::format_string_parts

args: &'tcx [Expr<'tcx>]

Expressions like ArgumentV1::new(arg0, Debug::fmt)

fmt_expr: Option<&'tcx Expr<'tcx>>

The final argument passed to Arguments::new_v1_formatted, if applicable

Implementations

Parses an expanded format_args! or format_args_nl! invocation

Returns a vector of FormatArgsArg.

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

Performs the conversion.

Performs the conversion.

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