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, {..}
.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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: 128 bytes