Struct clippy_utils::macros::FormatArg
source · pub struct FormatArg<'tcx> {
pub param: FormatParam<'tcx>,
pub format: FormatSpec<'tcx>,
pub span: Span,
}
Expand description
A format argument, such as {}
, {foo:?}
.
Fields§
§param: FormatParam<'tcx>
The parameter the argument refers to.
format: FormatSpec<'tcx>
How to format param
.
span: Span
span of the whole argument, {..}
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> RefUnwindSafe for FormatArg<'tcx>
impl<'tcx> !Send for FormatArg<'tcx>
impl<'tcx> !Sync for FormatArg<'tcx>
impl<'tcx> Unpin for FormatArg<'tcx>
impl<'tcx> UnwindSafe for FormatArg<'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: 136 bytes