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: SpanSpan 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
Auto Trait Implementations
impl<'tcx> RefUnwindSafe for FormatArgsExpn<'tcx>
impl<'tcx> !Send for FormatArgsExpn<'tcx>
impl<'tcx> !Sync for FormatArgsExpn<'tcx>
impl<'tcx> Unpin for FormatArgsExpn<'tcx>
impl<'tcx> UnwindSafe for FormatArgsExpn<'tcx>
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: 96 bytes
